SlideMorph class

Leave one way, arrive from the other. See MorphStyle.slide.

Inheritance

Constructors

SlideMorph({double distance = 12, AxisDirection from = AxisDirection.down, double stagger = 0.4})
Travel distance pixels; new letters arrive from from.
const

Properties

baseHash → int
The base fields' contribution to hashCode.
no setterinherited
distance → double
Travel, logical pixels.
final
enterCurve → Curve
The ease of an arriving unit.
finalinherited
enterStart → double
Where in the run (0..1) the entrance leg starts.
finalinherited
exitCurve → Curve
The ease of a leaving unit.
finalinherited
exitEnd → double
Where in the run (0..1) the exit leg ends. With enterStart a little before it the hand-over reads as one motion; 1.0 with enterStart 0 runs both legs on one clock (a roll).
finalinherited
from → AxisDirection
The side new letters arrive FROM; old letters leave out the opposite side, so the whole exchange moves one way.
final
hashCode → int
The hash code for this object.
no setteroverride
numeric → bool
Read the travel direction from the numbers in the two texts.
no setterinherited
order → StaggerOrder
The order the changed units leave and arrive in.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stagger → double
How much of each leg is spent starting units.
finalinherited

Methods

enter(UnitPose pose, double e, double lineHeight, bool up) → void
Pose an arriving unit. e runs 0 (not yet) → 1 (arrived).
override
exit(UnitPose pose, double e, double lineHeight, bool up) → void
Pose a leaving unit. e runs 0 (in place) → 1 (gone); up is the numeric direction for numeric styles.
override
glint(double local, int k, int n) → Color?
A sheen to tint a unit at raw local progress local (0..1 within its own leg), or null.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sameBase(MorphStyle other) → bool
True when other shares this style's stagger and eases — for ==.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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