TreeReorderConfig<TKey> constructor
const
TreeReorderConfig<TKey> ({
- required void onReorder(
- TKey key,
- TKey? newParent,
- int index
- bool enabled = true,
- bool canReorder(
- TKey key
- bool canAcceptDrop({
- int? index,
- required TKey movingKey,
- TKey? newParent,
- ReorderSemanticsActionsBuilder<
TKey> ? semanticsActionsBuilder, - bool buildDefaultDragHandles = true,
- double? indentWidth,
- bool showDragProxy = true,
- Widget dragProxyBuilder(
- BuildContext context,
- TKey key,
- Widget? rowChild
- bool hapticsOnDrag = false,
- Duration? autoExpandDelay = const Duration(milliseconds: 700),
- double autoScrollEdgeZone = 48.0,
- double autoScrollMaxVelocity = 1200.0,
- void onControllerCreated(
- TreeReorderController<
TKey> controller
- TreeReorderController<
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,
});