TreeReorderConfig<TKey> constructor

const TreeReorderConfig<TKey>({
  1. required void onReorder(
    1. TKey key,
    2. TKey? newParent,
    3. int index
    ),
  2. bool enabled = true,
  3. bool canReorder(
    1. TKey key
    )?,
  4. bool canAcceptDrop({
    1. int? index,
    2. required TKey movingKey,
    3. TKey? newParent,
    })?,
  5. ReorderSemanticsActionsBuilder<TKey>? semanticsActionsBuilder,
  6. bool buildDefaultDragHandles = true,
  7. double? indentWidth,
  8. bool showDragProxy = true,
  9. Widget dragProxyBuilder(
    1. BuildContext context,
    2. TKey key,
    3. Widget? rowChild
    )?,
  10. bool hapticsOnDrag = false,
  11. Duration? autoExpandDelay = const Duration(milliseconds: 700),
  12. double autoScrollEdgeZone = 48.0,
  13. double autoScrollMaxVelocity = 1200.0,
  14. void onControllerCreated(
    1. TreeReorderController<TKey> controller
    )?,
})

Implementation

const TreeReorderConfig({
  required this.onReorder,
  this.enabled = true,
  this.canReorder,
  this.canAcceptDrop,
  this.semanticsActionsBuilder,
  this.buildDefaultDragHandles = true,
  this.indentWidth,
  this.showDragProxy = true,
  this.dragProxyBuilder,
  this.hapticsOnDrag = false,
  this.autoExpandDelay = const Duration(milliseconds: 700),
  this.autoScrollEdgeZone = 48.0,
  this.autoScrollMaxVelocity = 1200.0,
  this.onControllerCreated,
});