Skip to main content

ReorderableDragStartListenerWidget

Trait ReorderableDragStartListenerWidget 

Source
pub trait ReorderableDragStartListenerWidget: Clone + 'static {
    // Required methods
    fn reorderable_drag_start_listener(&self) -> &ReorderableDragStartListener;
    fn create_recognizer(&self, app: &mut App) -> MultiDragRecognizerRef;

    // Provided method
    fn build(&self, _app: &mut App, context: BuildContext) -> WidgetRef { ... }
}
Expand description

Dart’s ReorderableDragStartListener as the base class of the listeners: a subclass, such as ReorderableDelayedDragStartListener, overrides create_recognizer, and its build is build.

Required Methods§

Source

fn reorderable_drag_start_listener(&self) -> &ReorderableDragStartListener

The base class’s fields.

Source

fn create_recognizer(&self, app: &mut App) -> MultiDragRecognizerRef

Provides the gesture recognizer used to indicate the start of a reordering drag operation.

ReorderableDragStartListener answers an ImmediateMultiDragGestureRecognizer; a subclass customizes the drag start gesture here.

Provided Methods§

Source

fn build(&self, _app: &mut App, context: BuildContext) -> WidgetRef

Dart’s ReorderableDragStartListener.build, which every subclass inherits.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§