HcMainGridView constructor

const HcMainGridView({
  1. Key? key,
  2. Widget? header,
  3. int? headerItemCount,
  4. bool reverse = false,
  5. SliverGridDelegate? headerGridDelegate,
  6. required IndexedWidgetBuilder itemBuilder,
  7. required WillAcceptCallback onWillAccept,
  8. WidgetPositionBuilder? feedback,
  9. required ReorderCallback onReorder,
  10. WidgetPositionBuilder? childWhenDragging,
  11. IndexedWidgetBuilder? itemBuilderHeader,
  12. ScrollController? controller,
  13. bool isVertical = true,
  14. EdgeInsetsGeometry? padding,
  15. int? semanticChildCount,
  16. ScrollPhysics? physics,
  17. bool addAutomaticKeepAlive = true,
  18. bool addRepaintBoundaries = true,
  19. bool addSemanticIndexes = true,
  20. EdgeInsetsGeometry? headerPadding,
  21. double? cacheExtent,
  22. int? itemCount,
  23. bool allHeaderChildNonDraggable = false,
  24. bool? primary,
  25. bool isStickyHeader = false,
  26. ReorderCallback? onReorderHeader,
  27. WillAcceptCallback? onWillAcceptHeader,
  28. bool isCustomFeedback = false,
  29. bool isCustomChildWhenDragging = false,
  30. required SliverGridDelegate gridDelegate,
  31. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  32. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
})

Implementation

const HcMainGridView(
    {super.key,
    this.header,
    this.headerItemCount,
    this.reverse = false,
    this.headerGridDelegate,
    required this.itemBuilder,
    required this.onWillAccept,
    this.feedback,
    required this.onReorder,
    this.childWhenDragging,
    this.itemBuilderHeader,
    this.controller,
    this.isVertical = true,
    this.padding,
    this.semanticChildCount,
    this.physics,
    this.addAutomaticKeepAlive = true,
    this.addRepaintBoundaries = true,
    this.addSemanticIndexes = true,
    this.headerPadding,
    this.cacheExtent,
    this.itemCount,
    this.allHeaderChildNonDraggable = false,
    this.primary,
    this.isStickyHeader = false,
    this.onReorderHeader,
    this.onWillAcceptHeader,
    this.isCustomFeedback = false,
    this.isCustomChildWhenDragging = false,
    required this.gridDelegate,
    this.dragStartBehavior = DragStartBehavior.start,
    this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual});