IDKitChoice<T extends Object>.grid constructor

const IDKitChoice<T extends Object>.grid({
  1. Key? key,
  2. required List<T> sources,
  3. required ItemBuilder<T> itemBuilder,
  4. SliverGridDelegate? gridDelegate,
  5. dynamic choiceCallMethod(
    1. T? result,
    2. List<T>? results
    )?,
  6. bool isManipulate(
    1. bool
    )?,
  7. int? maximumChoice,
  8. bool isCancelAll = true,
  9. bool isStartChoicedCall = false,
  10. List<int>? chosenIndexs,
  11. ChoiceType type = ChoiceType.single,
  12. Axis scrollDirection = Axis.vertical,
  13. bool reverse = false,
  14. ScrollController? controller,
  15. bool? primary,
  16. ScrollPhysics? physics,
  17. bool shrinkWrap = false,
  18. EdgeInsetsGeometry? padding,
  19. double? itemExtent,
  20. Widget? prototypeItem,
  21. bool addAutomaticKeepAlives = true,
  22. bool addRepaintBoundaries = true,
  23. bool addSemanticIndexes = true,
  24. double? cacheExtent,
  25. int? findChildIndexCallback(
    1. Key
    )?,
  26. int? semanticChildCount,
  27. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  28. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  29. String? restorationId,
  30. Clip clipBehavior = Clip.hardEdge,
})

Selection widget for grid type.

Implementation

const IDKitChoice.grid({
  Key? key,
  required List<T> sources,
  required ItemBuilder<T> itemBuilder,
  SliverGridDelegate? gridDelegate,
  Function(T? result, List<T>? results)? choiceCallMethod,
  bool Function(bool)? isManipulate,
  int? maximumChoice,
  bool isCancelAll = true,
  bool isStartChoicedCall = false,
  List<int>? chosenIndexs,
  ChoiceType type = ChoiceType.single,
  Axis scrollDirection = Axis.vertical,
  bool reverse = false,
  ScrollController? controller,
  bool? primary,
  ScrollPhysics? physics,
  bool shrinkWrap = false,
  EdgeInsetsGeometry? padding,
  double? itemExtent,
  Widget? prototypeItem,
  bool addAutomaticKeepAlives = true,
  bool addRepaintBoundaries = true,
  bool addSemanticIndexes = true,
  double? cacheExtent,
  int? Function(Key)? findChildIndexCallback,
  int? semanticChildCount,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
  String? restorationId,
  Clip clipBehavior = Clip.hardEdge,
}) : super(
        key: key,
        sort: ChoiceSort.grid,
        type: type,
        isCancelAll: isCancelAll,
        isStartChoicedCall: isStartChoicedCall,
        isManipulate: isManipulate,
        chosenIndexs: chosenIndexs,
        sources: sources,
        itemBuilder: itemBuilder,
        gridDelegate: gridDelegate,
        maximumChoice: maximumChoice,
        choiceCallMethod: choiceCallMethod,
        scrollDirection: scrollDirection,
        reverse: reverse,
        controller: controller,
        primary: primary,
        physics: physics,
        shrinkWrap: shrinkWrap,
        padding: padding,
        itemExtent: itemExtent,
        prototypeItem: prototypeItem,
        addAutomaticKeepAlives: addAutomaticKeepAlives,
        addRepaintBoundaries: addRepaintBoundaries,
        addSemanticIndexes: addSemanticIndexes,
        cacheExtent: cacheExtent,
        findChildIndexCallback: findChildIndexCallback,
        semanticChildCount: semanticChildCount,
        dragStartBehavior: dragStartBehavior,
        keyboardDismissBehavior: keyboardDismissBehavior,
        restorationId: restorationId,
        clipBehavior: clipBehavior,
      );