Bounce class

Letters drop in from above and land with one soft overshoot — the settle dips a hair below the line and squashes, then stands. Playful where Rise is quiet; keep it for a headline, not a list.

Inheritance

Constructors

Bounce({double distance = 18, double squash = 0.1, double stagger = 0.5, StaggerOrder order = StaggerOrder.reading, Curve curve = KineticEase.overshoot})
Fall distance pixels; squash by squash at the landing.
const

Properties

continuous → bool
True for effects that move on their own clock (shimmer, sparkle, float) and need the host ticking while mounted.
no setterinherited
curve → Curve
The ease each unit's own timeline runs through.
finalinherited
distance → double
Drop height, logical pixels.
final
hashCode → int
The hash code for this object.
no setteroverride
motionOnly → bool
True for effects that are only motion — under reduced motion they are skipped entirely. A gradient fill is not motion; a sparkle is.
no setterinherited
order → StaggerOrder
The order units start in.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
squash → double
Vertical squash at the deepest point of the landing (0.1 = 10%).
final
stagger → double
How much of the run is spent starting units, 0..0.95.
finalinherited
staggerHash → int
The stagger's contribution to a subclass's hashCode.
no setterinherited

Methods

apply(TextFrame frame, UnitSlice slice) → void
Write this frame's poses, ink passes and decor for slice into frame.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
poseUnit(TextFrame frame, UnitBox unit, UnitPose pose, double local, double eased, int k, int n) → void
Pose one unit. local is the unit's raw 0..1 timeline, eased the same through curve; k is its position in the slice of n.
override
sameStagger(StaggeredEffect other) → bool
True when other staggers the same way — for subclasses' ==.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override