Release class
Bundled per-axis plans. Built from a ReleaseContext via factories.
Constructors
- Release({required HorizontalRelease x, required VerticalRelease y, required ScaleRelease scale})
-
const
- Release.toDisplay(ReleaseContext data)
-
The default plan: settle back into the viewport (display). Per axis,
physics-derived flings whose final settle (rubber) lands at a viewport-
correct position — covers display when zoomed (with maxScale clamp +
proportional pan preservation), snaps to base when not zoomed.
factory
- Release.toHalt(ReleaseContext data)
-
Decay-only plan: physics-derived friction phases per axis, no settle.
The rect ends wherever the physics naturally halts. Useful as a building
block for flows that compose decay with a custom finalize step (e.g.,
dismiss to origin).
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
- scale → ScaleRelease
-
final
- x → HorizontalRelease
-
final
- y → VerticalRelease
-
final
Methods
-
copyWith(
{HorizontalRelease? x, VerticalRelease? y, ScaleRelease? scale}) → Release -
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