S2MultiChosenData<T> mixin
Null safety
Chosen data for single choice widget
- Superclass Constraints
- S2ChosenData<
T>
- S2ChosenData<
- Mixin Applications
Properties
-
value
→ List<
T> -
Returns an array of
value
of the current choiceread-onlyoverride -
title
→ List<
String> ? -
Returns an array of
title
of the choiceread-onlyoverride -
subtitle
→ List<
String> ? -
Returns an array of
subtitle
of the choiceread-onlyoverride -
group
→ List<
String> ? -
Returns an array of
group
of the choiceread-onlyoverride - length → int
-
Returns the length of the choice
read-onlyoverride
- isEmpty → bool
-
Returns
true
if there are no values in the chosen dataread-onlyoverride - isNotEmpty → bool
-
Returns
true
if there is at least one value in the chosen dataread-onlyoverride - choice → dynamic
-
Returns the choice item(s)
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
has(
S2Choice< T> choice) → bool -
Returns
true
if the chosen contains the supplied choice itemoverride -
hasAll(
List< S2Choice< choices) → boolT> > -
Returns `true if the selection has every of the supplied values
override
-
hasAny(
List< S2Choice< choices) → boolT> > -
Returns
true
if the selection has any of the supplied valuesoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string that can be used as display,
returns title if is valid and is not empty,
returns placeholder if is valid and is empty.
override
-
toWidget(
) → Widget -
Return a Text widget from toString
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited