S2ChosenData<T> class
Null safety
Chosen data class
- Implementers
Constructors
Properties
- choice → dynamic
-
Returns the choice item(s)
read-only
- group → dynamic
-
Returns the group(s) data
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- isEmpty → bool
-
Returns
true
if there are no values in the chosen dataread-only - isNotEmpty → bool
-
Returns
true
if there is at least one value in the chosen dataread-only - length → int
-
Returns the length of the choice
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- subtitle → dynamic
-
Returns the subtitle(s) data
read-only
- title → dynamic
-
Returns the title(s) data
read-only
- value → dynamic
-
Returns the value(s) data
read-only
Methods
-
has(
S2Choice< T> choice) → bool -
Returns
true
if the chosen contains the supplied choice item -
hasAll(
List< S2Choice< choices) → boolT> > - Returns `true if the chosen has every of the supplied choice items
-
hasAny(
List< S2Choice< choices) → boolT> > -
Returns
true
if the chosen has any of the supplied choice items -
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited