pub struct ReorderableDelayedDragStartListener {
pub listener: ReorderableDragStartListener,
}Expand description
A wrapper widget that will recognize the start of a drag operation by looking for a long press event. Once it is recognized, it will start a drag operation on the wrapped item in the reorderable list.
See also:
ReorderableDragStartListener, a similar wrapper that will recognize the start of the drag immediately after a pointer down event.ReorderableList, a widget list that allows the user to reorder its items.SliverReorderableList, a sliver list that allows the user to reorder its items.ReorderableListView, a Material Design list that allows the user to reorder its items.
Fields§
§listener: ReorderableDragStartListenerThe ReorderableDragStartListener superclass fields.
Implementations§
Source§impl ReorderableDelayedDragStartListener
impl ReorderableDelayedDragStartListener
Sourcepub fn new<K>(
child: impl IntoWidget<K>,
index: i32,
) -> ReorderableDelayedDragStartListener
pub fn new<K>( child: impl IntoWidget<K>, index: i32, ) -> ReorderableDelayedDragStartListener
Creates a listener for an drag following a long press event over the given child widget.
This is most commonly used to wrap an entire list item in a reorderable list.
Sourcepub fn key(self, key: KeyRef) -> ReorderableDelayedDragStartListener
pub fn key(self, key: KeyRef) -> ReorderableDelayedDragStartListener
Dart ReorderableDelayedDragStartListener(key:).
Sourcepub fn enabled(self, enabled: bool) -> ReorderableDelayedDragStartListener
pub fn enabled(self, enabled: bool) -> ReorderableDelayedDragStartListener
Dart ReorderableDelayedDragStartListener(enabled:).
Trait Implementations§
Source§impl ReorderableDragStartListenerWidget for ReorderableDelayedDragStartListener
impl ReorderableDragStartListenerWidget for ReorderableDelayedDragStartListener
Source§fn reorderable_drag_start_listener(&self) -> &ReorderableDragStartListener
fn reorderable_drag_start_listener(&self) -> &ReorderableDragStartListener
The base class’s fields.
Source§fn create_recognizer(&self, app: &mut App) -> MultiDragRecognizerRef
fn create_recognizer(&self, app: &mut App) -> MultiDragRecognizerRef
Provides the gesture recognizer used to indicate the start of a reordering drag
operation. Read more
Source§impl StatelessWidget for ReorderableDelayedDragStartListener
impl StatelessWidget for ReorderableDelayedDragStartListener
Source§fn build(&self, app: &mut App, context: BuildContext) -> WidgetRef
fn build(&self, app: &mut App, context: BuildContext) -> WidgetRef
Describes the part of the user interface represented by this widget. Read more
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn debug_check_constructor(&self)
fn debug_check_constructor(&self)
Dart’s constructor asserts that relate two or more arguments. Read more
Source§fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
Dart’s
this is PreferredSizeWidget: a widget that implements PreferredSizeWidget
answers with itself, which is what a parent asking an erased child for its preferred
size reads.Auto Trait Implementations§
impl !RefUnwindSafe for ReorderableDelayedDragStartListener
impl !Send for ReorderableDelayedDragStartListener
impl !Sync for ReorderableDelayedDragStartListener
impl !UnwindSafe for ReorderableDelayedDragStartListener
impl Forget for ReorderableDelayedDragStartListener
impl Freeze for ReorderableDelayedDragStartListener
impl Move for ReorderableDelayedDragStartListener
impl Unpin for ReorderableDelayedDragStartListener
impl UnsafeUnpin for ReorderableDelayedDragStartListenerwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<W> IntoWidget<StatelessKind> for Wwhere
W: StatelessWidget,
impl<W> IntoWidget<StatelessKind> for Wwhere
W: StatelessWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.