IDKitChoice<T extends Object> class

Widget to select function.

Inheritance
Available Extensions

Constructors

IDKitChoice.grid({Key? key, required List<T> sources, required ItemBuilder<T> itemBuilder, SliverGridDelegate? gridDelegate, dynamic choiceCallMethod(T? result, List<T>? results)?, bool isManipulate(bool)?, 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(Key)?, int? semanticChildCount, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, String? restorationId, Clip clipBehavior = Clip.hardEdge})
Selection widget for grid type.
const
IDKitChoice.list({Key? key, required List<T> sources, required ItemBuilder<T> itemBuilder, dynamic choiceCallMethod(T? result, List<T>? results)?, bool isManipulate(bool)?, 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(Key)?, int? semanticChildCount, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, String? restorationId, Clip clipBehavior = Clip.hardEdge})
const
IDKitChoice.listSeparated({Key? key, required List<T> sources, required ItemBuilder<T> itemBuilder, required ItemBuilder<T> separatorBuilder, dynamic choiceCallMethod(T? result, List<T>? results)?, bool isManipulate(bool)?, 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, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, double? cacheExtent, int? findChildIndexCallback(Key)?, int? semanticChildCount, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, String? restorationId, Clip clipBehavior = Clip.hardEdge})
Separated type list choice widget.
const
IDKitChoice.warp({Key? key, required List<T> sources, ChoiceType type = ChoiceType.single, required ItemBuilder<T> itemBuilder, dynamic choiceCallMethod(T? result, List<T>? results)?, bool isManipulate(bool)?, int? maximumChoice, bool isCancelAll = true, bool isStartChoicedCall = false, List<int>? chosenIndexs, Axis direction = Axis.horizontal, WrapAlignment alignment = WrapAlignment.start, double spacing = 0.0, WrapAlignment runAlignment = WrapAlignment.start, double runSpacing = 0.0, WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start, TextDirection? textDirection, VerticalDirection verticalDirection = VerticalDirection.down})
Selection widget for warp type.
const

Properties

addAutomaticKeepAlives bool
finalinherited
addRepaintBoundaries bool
finalinherited
addSemanticIndexes bool
finalinherited
alignment WrapAlignment
finalinherited
cacheExtent double?
finalinherited
choiceCallMethod → (dynamic Function(T? result, List<T>? results)?)
finalinherited
chosenIndexs List<int>?
finalinherited
clipBehavior Clip
finalinherited
controller ScrollController?
finalinherited
crossAxisAlignment WrapCrossAlignment
finalinherited
direction Axis
finalinherited
dragStartBehavior DragStartBehavior
finalinherited
findChildIndexCallback → (int? Function(Key)?)
finalinherited
gridDelegate SliverGridDelegate?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isCancelAll bool
finalinherited
isManipulate → (bool Function(bool)?)
finalinherited
isStartChoicedCall bool
finalinherited
itemBuilder ItemBuilder<T>
finalinherited
itemExtent double?
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior
finalinherited
maximumChoice int?
finalinherited
padding EdgeInsetsGeometry?
finalinherited
physics ScrollPhysics?
finalinherited
primary bool?
finalinherited
prototypeItem Widget?
finalinherited
restorationId String?
finalinherited
reverse bool
finalinherited
runAlignment WrapAlignment
finalinherited
runSpacing double
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
finalinherited
semanticChildCount int?
finalinherited
separatorBuilder ItemBuilder<T>?
finalinherited
shrinkWrap bool
finalinherited
sort → ChoiceSort
finalinherited
sources List<T>
finalinherited
spacing double
finalinherited
textDirection TextDirection?
finalinherited
type ChoiceType
Attribute definition
finalinherited
verticalDirection VerticalDirection
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ChoiceWidget<T>>
Creates the mutable state for this widget at a given location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited