HcMainGridView constructor
const
HcMainGridView({
- Key? key,
- Widget? header,
- int? headerItemCount,
- bool reverse = false,
- SliverGridDelegate? headerGridDelegate,
- required IndexedWidgetBuilder itemBuilder,
- required WillAcceptCallback onWillAccept,
- WidgetPositionBuilder? feedback,
- required ReorderCallback onReorder,
- WidgetPositionBuilder? childWhenDragging,
- IndexedWidgetBuilder? itemBuilderHeader,
- ScrollController? controller,
- bool isVertical = true,
- EdgeInsetsGeometry? padding,
- int? semanticChildCount,
- ScrollPhysics? physics,
- bool addAutomaticKeepAlive = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- EdgeInsetsGeometry? headerPadding,
- double? cacheExtent,
- int? itemCount,
- bool allHeaderChildNonDraggable = false,
- bool? primary,
- bool isStickyHeader = false,
- ReorderCallback? onReorderHeader,
- WillAcceptCallback? onWillAcceptHeader,
- bool isCustomFeedback = false,
- bool isCustomChildWhenDragging = false,
- required SliverGridDelegate gridDelegate,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- 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});