IDKitChoice<T extends Object>.list constructor

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

Implementation

const IDKitChoice.list({
  Key? key,
  required List<T> sources,
  required ItemBuilder<T> itemBuilder,
  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.list,
        type: type,
        isCancelAll: isCancelAll,
        isStartChoicedCall: isStartChoicedCall,
        isManipulate: isManipulate,
        chosenIndexs: chosenIndexs,
        sources: sources,
        itemBuilder: itemBuilder,
        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,
      );