GroupState class

Represents a state that is group to multiple inner states.

It is basically a UIState object extended by the capability to contain multiple inner states. GroupState's cannot be directly targeted by transitions. Instead child states should be targeted.

Inheritance

Constructors

GroupState({required String id, GroupState? parent, Set<UIState> innerStates = const {}})
Creates an instance of GroupState.
GroupState.conditional({required String id, GroupState? parent, Set<UIState> innerStates = const {}, required bool condition(), required String fallbackId})
Creates a conditional instance of GroupState.

Properties

condition → (bool Function()?)
The entering condition of this state.
finalinherited
fallbackId String?
The fallback state id which is used if the condition fails.
finalinherited
fallbackTransition TriggerTransition
Returns the fallback transition for a conditional state.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasParent bool
no setterinherited
id String
An unique identifier.
finalinherited
innerStates Set<UIState>
The child states of thisgroup.
final
isConditional bool
no setterinherited
parent GroupState?
The parent state associated with this state.
getter/setter pairinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

check() bool
Executes the condition if set and returns the result.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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