dragStartBehavior property
The data source which provides data to show in each row. Must be non-null.
This object should generally have a lifetime longer than the PaginatedDataTable widget itself; it should be reused each time the PaginatedDataTable constructor is called. Determines the way that drag start behavior is handled.
If set to DragStartBehavior.start, scrolling drag behavior will begin at the position where the drag gesture won the arena. If set to DragStartBehavior.down it will begin at the position where a down event is first detected.
In general, setting this to DragStartBehavior.start will make drag animation smoother and setting it to DragStartBehavior.down will make drag behavior feel slightly more reactive.
By default, the drag start behavior is DragStartBehavior.start.
See also:
- DragGestureRecognizer.dragStartBehavior, which gives an example for the different behaviors.
Implementation
// late final DataTableSource source;
/// {@macro flutter.widgets.scrollable.dragStartBehavior}
final DragStartBehavior dragStartBehavior;