S2MultiState<T> class Null safety

State for Multiple Choice

Inheritance

Constructors

S2MultiState()

Properties

builder S2MultiBuilder<T>?
Returns the builders collection
read-onlyoverride
choiceActiveStyle S2ChoiceStyle?
Returns the active choice style
read-onlyinherited
choiceConfig S2ChoiceConfig
Returns the choice config
read-onlyinherited
choiceEmpty Widget
Returns the choice empty widget
read-onlyinherited
choiceList Widget
Returns the choice items widget
read-onlyinherited
choiceListBuilder S2ChoiceListBuilder<T>
Returns the choice item builder by it's current state
read-onlyinherited
choiceProgress Widget
Returns the indicator widget indicates the choices is processing
read-onlyinherited
choiceResolver → S2ChoiceResolver<T>
Returns the default choice builder by its type
read-onlyinherited
choices ↔ S2Choices<T>?
State of the choice items
read / writeinherited
choiceSelectorAll Widget
Returns the choices selector widget
read-onlyoverride
choiceStyle S2ChoiceStyle?
Returns the choice style
read-onlyinherited
confirmButton Widget
Returns the confirm button widget
read-onlyinherited
context BuildContext
The location in the tree where this widget builds.
read-onlyinherited
customChoiceEmpty Widget?
Returns the custom empty choice widget
read-onlyoverride
customConfirmButton Widget?
Returns the custom confirm button widget
read-onlyoverride
customModal Widget?
Returns the custom modal widget
read-onlyoverride
customModalActions List<Widget>?
Returns the custom modal actions widgets
read-onlyoverride
customModalFilter Widget?
Returns the custom modal filter widget
read-onlyoverride
customModalFilterToggle Widget?
Returns the custom widget to show/hide modal filter
read-onlyoverride
customModalHeader Widget?
Returns the custom modal header
read-onlyoverride
debouncer → Debouncer
Debouncer used in search text on changed
finalinherited
defaultActiveChoiceStyle S2ChoiceStyle
Returns the default style for selected choice
read-onlyinherited
defaultChoiceEmpty Widget
Returns the default choice empty widget
read-onlyinherited
defaultChoiceStyle S2ChoiceStyle
Returns the default style for unselected choice
read-onlyinherited
defaultConfirmButton Widget
Returns the default confirm button widget
read-onlyinherited
defaultModal Widget
Returns the default modal widget
read-onlyinherited
defaultModalActions List<Widget>
Returns the default modal actions widgets
read-onlyinherited
defaultModalFilter Widget
Returns the default modal filter widget
read-onlyinherited
defaultModalFilterToggle Widget
Returns the default widget to show/hide modal filter
read-onlyinherited
defaultModalHeader Widget
Returns the default modal header widget
read-onlyinherited
defaultTile Widget
Returns the default trigger tile widget
read-onlyinherited
filter ↔ S2Filter?
State of the filter operation
read / writeinherited
groupConfig S2GroupConfig
Returns the group config
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
isMultiChoice bool
Returns true if the widget is multiple choice
read-onlyinherited
isSingleChoice bool
Returns true if the widget is single choice
read-onlyinherited
Returns the modal widget
read-onlyinherited
modalActions List<Widget>
Returns the modal action widgets
read-onlyinherited
modalBody Widget
Returns the modal body widget
read-onlyinherited
modalConfig S2ModalConfig
Returns the modal config
read-onlyinherited
modalContext BuildContext
Context of the modal
read / writeinherited
modalDivider Widget?
Returns the modal divider widget
read-onlyoverride
modalError Widget
Returns the modal error widget
read-onlyinherited
modalErrorController ↔ S2TextErrorController
read / writeinherited
modalFilter Widget
Returns the modal filter widget
read-onlyinherited
modalFilterToggle Widget?
Returns the widget to show/hide modal filter
read-onlyinherited
modalFooter Widget?
Returns the modal footer widget
read-onlyoverride
modalHeader Widget?
Returns the modal header widget
read-onlyinherited
modalHeaderStyle S2ModalHeaderStyle
Returns the modal header style
read-onlyinherited
modalSetState StateSetter?
State setter of the modal
read / writeinherited
modalStyle S2ModalStyle
Returns the modal style
read-onlyinherited
modalTitle Widget
Returns the modal title widget
read-onlyinherited
modalValidation S2Validation<S2MultiChosen<T>>?
Returns the validation function to validate the selection made in the modal, if null fallback to validation
read-onlyoverride
mounted bool
Whether this State object is currently in a tree.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selected S2MultiSelected<T>
State of the selected choice(s)
read-onlyoverride
selection S2MultiSelection<T>?
State of the selected choice(s) State of choice(s) selection in the modal
covariantread / writeoverride
theme ThemeData
Returns ThemeData from the widget context
read-onlyinherited
title String?
Returns the text used as title in trigger tile
read-onlyinherited
titleWidget Widget
Returns title in Text widget
read-onlyinherited
validation S2Validation<S2MultiChosen<T>>?
Returns the validation function to validate the selected choice
read-onlyoverride
widget SmartSelect<T>
The current configuration.
read-onlyinherited

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
choiceBuilder(S2Choice<T> choice) Widget?
Returns the choice item builder from resolver by it's type
override
choiceSecondary(S2Choice<T> choice) Widget?
Returns the secondary/avatar widget
override
choiceSelector(List<S2Choice<T>>? values) Widget
Function to create toggle selector checkbox widget
override
choiceSubtitle(S2Choice<T> choice) Widget?
Returns the choice subtitle widget
override
choiceTitle(S2Choice<T> choice) Widget?
Returns the choice title widget
override
closeModal({bool confirmed = true}) → void
Function to close the choice modal
inherited
customGroup(S2Group<T> group) Widget?
Returns the custom grouped choices widget
override
customGroupHeader(S2Group<T> group) Widget?
Returns the custom group header widget
override
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
defaultChoiceSubtitle(S2Choice<T> choice) Widget
Returns the default choice subtitle widget
inherited
defaultChoiceTitle(S2Choice<T> choice) Widget
Returns the default choice title widget
inherited
defaultGroup(S2Group<T> group) Widget
Returns the default grouped choices widget
inherited
defaultGroupHeader(S2Group<T> group) Widget
Returns the default group header widget
inherited
defaultModalWillClose() Future<bool>
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant SmartSelect<T> oldWidget) → void
Called whenever the widget configuration changes.
override
dispose() → void
Called when this object is removed from the tree permanently.
inherited
groupChoices(S2Group<T> group) Widget
Returns the group choices widget
inherited
groupCounter(S2Group<T> group) Widget
Returns the group counter widget
inherited
groupedChoices(List<S2Group<T>> groups) Widget
Returns the grouped choice items widget
inherited
groupHeader(S2Group<T> group) Widget
Returns the group header widget
inherited
initializeFilter() → void
Function to initialize filter
inherited
initState() → void
Called when this object is inserted into the tree.
inherited
modalErrorShake() → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onChange() → void
Called when the modal closed and selection has confirmed
override
onModalClose(bool confirmed) → void
Called when modal closed
override
onModalOpen() → void
Called when modal opened
override
onModalWillClose() Future<bool>
Called when modal closed
override
onModalWillOpen() Future<bool>?
Called when modal opened
override
onSelect(S2Choice<T> choice) → void
Called when selection has made
override
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
resolveChoices() → void
Function to resolve the choices
inherited
resolveSelected() → void
Initiate the selected choice
override
resolveSelection() → void
Function to resolve the selected
override
selectedHandler() → void
The selected listener handler
inherited
selectionHandler() → void
The selection listener handler
inherited
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
showModal() → void
Function to show the choice modal
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
ungroupedChoices(List<S2Choice<T>>? choiceList) Widget
Returns the ungrouped choice items widget
inherited

Operators

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