C2State<T> class abstract

Chips Choice State

Inheritance
Implementers

Constructors

C2State()

Properties

choiceChips List<Widget>
List of widget of the choice items
no setter
choiceItems List<C2Choice<T>>
Choice items
getter/setter pair
choiceItemsMemoizer C2ChoiceMemoizer<T>?
Async memoizer for choice items
getter/setter pair
context BuildContext
The location in the tree where this widget builds.
no setterinherited
defaultActiveChoiceStyle C2ChipStyle
Default style for selected choice item
no setter
defaultChipMargin EdgeInsetsGeometry
Default chip margin
no setter
defaultChoiceStyle C2ChipStyle
Default style for unselected choice item
no setter
error String
Choice loader error
getter/setter pair
hasChoiceLoader bool
no setter
hasChoiceLoaderRun bool
no setter
hashCode int
The hash code for this object.
no setterinherited
isMultiChoice bool
Whether the widget is multiple choice or not
no setter
isScrollable bool
Whether the chips is scrollable or not
no setter
isSingleChoice bool
Whether the widget is single choice or not
no setter
listScrollable Widget
The scrollable choice items
no setter
listWrapped Widget
The non scrollable choice items
no setter
loading bool
Whether the choice items is loading or not
getter/setter pair
mounted bool
Whether this State object is currently in a tree.
no setterinherited
onChanged → dynamic
Called when value changed
no setter
placeholder String
Placeholder string
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
no setter
selectedContext BuildContext?
getter/setter pair
value → dynamic
Current selected value
no setter
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.
override
choiceChip(int i) Widget?
Widget generator for choice items
choiceLabelBuilder(C2Choice<T> item, int i) Widget
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
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.
override
disposeScrollController() → void
initScrollController() → void
initState() → void
Called when this object is inserted into the tree.
override
loadAsyncChoiceItems() Future<void>
loadChoiceItems({dynamic ensureSelectedVisibility = false}) → void
load the choice items
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
select(T val, {bool selected = true}) → void
Function to select a value
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
override
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