S2SingleChosen<T> class Null safety

Inheritance
Mixed in types

Constructors

S2SingleChosen(S2Choice<T>? choice)
Default constructor

Properties

choice S2Choice<T>?
Returns the choice item(s)
read-onlyoverride
group String?
Returns choice.group
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
isEmpty bool
Returns true if there are no values in the chosen data
read-onlyinherited
isNotEmpty bool
Returns true if there is at least one value in the chosen data
read-onlyinherited
length int
Returns the length of the choice
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
subtitle String?
Returns choice.subtitle
read-onlyinherited
title String?
Returns choice.title
read-onlyinherited
value → T
Returns choice.value
read-onlyinherited

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 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.
inherited
toWidget() Widget
Return a Text widget from toString
inherited

Operators

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