S2SingleChosen<T> class
- Inheritance
-
- Mixed-in types
-
Properties
-
choice
→ S2Choice<T>?
-
Returns the choice item(s)
no setteroverride
-
group
→ String?
-
Returns
choice.group
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isEmpty
→ bool
-
Returns
true
if there are no values in the chosen data
no setterinherited
-
isNotEmpty
→ bool
-
Returns
true
if there is at least one value in the chosen data
no setterinherited
-
length
→ int
-
Returns the length of the choice
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
subtitle
→ String?
-
Returns
choice.subtitle
no setterinherited
-
title
→ String?
-
Returns
choice.title
no setterinherited
-
value
→ T
-
Returns
choice.value
no setterinherited
Methods
-
has(S2Choice<T> choice)
→ bool
-
Returns
true
if the chosen contains the supplied choice item
inherited
-
hasAll(List<S2Choice<T>> choices)
→ bool
-
Returns `true if the chosen has every of the supplied choice items
inherited
-
hasAny(List<S2Choice<T>> choices)
→ bool
-
Returns
true
if the chosen has any of the supplied choice items
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent 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.
inherited
-
toWidget()
→ Widget
-
Return a Text widget from toString
inherited