C2SingleState<T> class

State for Single Choice

Inheritance

Constructors

C2SingleState()

Properties

choiceChips List<Widget>
List of widget of the choice items
no setterinherited
choiceItems List<C2Choice<T>>
Choice items
getter/setter pairinherited
choiceItemsMemoizer C2ChoiceMemoizer<T>?
Async memoizer for choice items
getter/setter pairinherited
context BuildContext
The location in the tree where this widget builds.
no setterinherited
defaultActiveChoiceStyle C2ChipStyle
Default style for selected choice item
no setterinherited
defaultChipMargin EdgeInsetsGeometry
Default chip margin
no setterinherited
defaultChoiceStyle C2ChipStyle
Default style for unselected choice item
no setterinherited
error String
Choice loader error
getter/setter pairinherited
hasChoiceLoader bool
no setterinherited
hasChoiceLoaderRun bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isMultiChoice bool
Whether the widget is multiple choice or not
no setterinherited
isScrollable bool
Whether the chips is scrollable or not
no setterinherited
isSingleChoice bool
Whether the widget is single choice or not
no setterinherited
listScrollable Widget
The scrollable choice items
no setterinherited
listWrapped Widget
The non scrollable choice items
no setterinherited
loading bool
Whether the choice items is loading or not
getter/setter pairinherited
mounted bool
Whether this State object is currently in a tree.
no setterinherited
onChanged C2Changed<T>?
Called when value changed
no setteroverride
placeholder String
Placeholder string
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
no setterinherited
selectedContext BuildContext?
getter/setter pairinherited
value → T?
Current selected value
no setteroverride
widget ChipsChoice<T>
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
choiceChip(int i) Widget?
Widget generator for choice items
inherited
choiceLabelBuilder(C2Choice<T> item, int i) Widget
inherited
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didChangeScrollController() → void
inherited
didUpdateWidget(covariant ChipsChoice<T> oldWidget) → void
Called whenever the widget configuration changes.
override
dispose() → void
Called when this object is removed from the tree permanently.
inherited
disposeScrollController() → void
inherited
initScrollController() → void
inherited
initState() → void
Called when this object is inserted into the tree.
inherited
loadAsyncChoiceItems() Future<void>
inherited
loadChoiceItems({dynamic ensureSelectedVisibility = false}) → void
load the choice items
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
scrollToSelected() → void
Scroll to the selected choice item
inherited
select(T val, {bool selected = true}) → void
Function to select a value
override
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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