ReorderableDragStartListener constructor Null safety

const ReorderableDragStartListener(
  1. {Key? key,
  2. required Widget child,
  3. required int index,
  4. bool enabled = true}
)

Creates a listener for a drag immediately following a pointer down event over the given child widget.

This is most commonly used to wrap part of a list item like a drag handle.

Implementation

const ReorderableDragStartListener({
  super.key,
  required this.child,
  required this.index,
  this.enabled = true,
});