IDKitChoice<T extends Object>.list constructor
const
IDKitChoice<T extends Object>.list ({
- Key? key,
- required List<
T> sources, - required ItemBuilder<
T> itemBuilder, - dynamic choiceCallMethod(
- T? result,
- List<
T> ? results
- 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? findChildIndexCallback()?,
- int? semanticChildCount,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- 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,
);