MorphPhase enum
Semantic phase of the liquid glass morph lifecycle.
Consuming widgets can use this to react to where in the animation lifecycle the morph currently is — without re-deriving it from raw animation values.
State machine (open direction):
idle → detaching → travelling → arriving → settled
State machine (close direction, spring bounces back):
settled → arriving → travelling → detaching → [bounce] → idle
Values
- idle → const MorphPhase
-
The morph has not started or has fully settled at its origin.
- detaching → const MorphPhase
-
The anchor blob is shrinking and Blob B is just beginning to pull away. In practice this covers animation values
0.0 – 0.4. - travelling → const MorphPhase
-
Blob B is in mid-travel — the teardrop neck is at maximum stretch. Animation values
0.4 – 0.8. - arriving → const MorphPhase
-
Blob B is approaching its destination and the neck is retracting. Animation values [0.8 – 1.0).
- settled → const MorphPhase
-
Blob B has fully settled at its target position. Animation value ≥ 1.0.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Constants
-
values
→ const List<
MorphPhase> - A constant List of the values in this enum, in order of their declaration.