ValueState<T> class
Constructors
- ValueState({required T primary, T? error, T? selected, T? unselected, T? focused, T? unfocused, T? enabled, T? disabled})
-
const
- ValueState.selectable({required T selected, required T unselected})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detect(
bool isEnabled) → T -
error(
bool isError) → T -
focused(
bool isFocused) → T -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
selected(
bool isSelected) → T -
toString(
) → String -
A string representation of this object.
inherited
-
typed(
StateType type) → T
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited