MorphState class
Immutable snapshot of a morph transition's state.
- Annotations
Constructors
- MorphState({required MorphPhase phase, required double progress, bool isDragging = false, double velocity = 0.0})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isAnimating → bool
-
no setter
- isCollapsed → bool
-
no setter
- isDragging → bool
-
Whether the user is actively dragging.
final
- isExpanded → bool
-
no setter
- phase → MorphPhase
-
Discrete phase of the state machine.
final
- progress → double
-
Continuous morph progress: 0.0 = collapsed, 1.0 = expanded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- velocity → double
-
Current drag/animation velocity (normalized).
final
Methods
-
copyWith(
{MorphPhase? phase, double? progress, bool? isDragging, double? velocity}) → MorphState -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override