DraggableGridViewBuilder constructor

const DraggableGridViewBuilder({
  1. Key? key,
  2. required SliverGridDelegate gridDelegate,
  3. required List<DraggableGridItem> children,
  4. required DragCompletion dragCompletion,
  5. bool isOnlyLongPress = true,
  6. DragFeedback? dragFeedback,
  7. DragChildWhenDragging? dragChildWhenDragging,
  8. DragPlaceHolder? dragPlaceHolder,
  9. Axis scrollDirection = Axis.vertical,
  10. bool reverse = false,
  11. ScrollController? controller,
  12. bool? primary,
  13. ScrollPhysics? physics,
  14. bool shrinkWrap = false,
  15. EdgeInsetsGeometry? padding,
  16. bool addAutomaticKeepAlives = true,
  17. bool addRepaintBoundaries = true,
  18. bool addSemanticIndexes = true,
  19. double? cacheExtent,
  20. int? semanticChildCount,
  21. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  22. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  23. String? restorationId,
  24. Clip clipBehavior = Clip.hardEdge,
  25. bool sliverMode = false,
})

Implementation

const DraggableGridViewBuilder({
  super.key,
  required this.gridDelegate,
  required this.children,
  required this.dragCompletion,
  this.isOnlyLongPress = true,
  this.dragFeedback,
  this.dragChildWhenDragging,
  this.dragPlaceHolder,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.semanticChildCount,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.sliverMode = false,
});