TextChangeSpec class final

The theme's text change, motion.text-change: a kind alone, or a map of type, duration, curve and stagger (the delay from one character to the next, for morph). None by default.

motion:
  text-change: { type: morph, duration: 600ms, curve: ease-out, stagger: 12ms }

Constructors

TextChangeSpec({TextChangeType type = TextChangeType.none, Duration duration = const Duration(milliseconds: 450), Curve curve = Curves.easeOut, Duration stagger = const Duration(milliseconds: 12), bool keepUnchanged = false, String glyphs = defaultGlyphs, Duration glyphDuration = const Duration(milliseconds: 40)})
A text change of type, duration, curve and stagger.
const

Properties

curve → Curve
The curve of the change.
final
duration → Duration
How long the whole change takes.
final
glyphDuration → Duration
For morph: how long each glyph shows before the next.
final
glyphs → String
For morph: the characters a changing character runs through, one after the other in a random order.
final
hashCode → int
The hash code for this object.
no setteroverride
keepUnchanged → bool
For morph: true keeps the characters that are the same in the old and the new text, so only the changed part runs through glyphs; false (the default) runs the wave over the whole line.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stagger → Duration
For morph, how much later each character starts than the one before it.
final
type → TextChangeType
The kind of change.
final

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.
override

Static Methods

parseAt(ThemeProperties p, String base) → TextChangeSpec?
Reads the text change written at base of p; null when nothing is written. Throws a ThemePropertyException for a wrong value or key.

Constants

defaultGlyphs → const String
The glyphs of morph when the theme gives none.