IconAnimations class

The central, declarative registry binding icons → IconAnimationProfile.

Register an icon's animation identity once (typically at app start) and any animated-icon widget resolves intro/idle/morph for it automatically:

IconAnimations.registerAll({
  MorphIcons.face: const IconAnimationProfile(
    idle: IconBlink(),
    morphInto: IconMorphPlan(heroAnchor: Offset(12, 16)),
  ),
  MorphIcons.lock: const IconAnimationProfile(intro: IconSpin3D.unlock()),
});

This is what makes the engine scalable: applying a polished idle/morph to a new glyph is a one-line registration, not a new widget. Unregistered icons resolve to fallback (a plain, still profile by default — override it to give every glyph a baseline idle).

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

fallback IconAnimationProfile
Profile returned for any unregistered icon. Override to set an app-wide baseline (e.g. a shared subtle idle on every glyph).
getter/setter pair

Static Methods

has(String icon) bool
Whether icon has an explicit profile.
idleFor(String icon) IconEffect?
Convenience resolvers used by the widgets.
introFor(String icon) IconEffect?
of(String icon) IconAnimationProfile
The profile for icon, or fallback if none is registered.
planFor(String icon) IconMorphPlan
register(String icon, IconAnimationProfile profile) → void
Bind one icon to a profile (overwrites any existing).
registerAll(Map<String, IconAnimationProfile> profiles) → void
Bind many at once — the idiomatic "configure at app start" call.
reset() → void
Clear all registrations (mainly for tests).