IconBreathe class

A gentle idle "breathe" — the icon scales up and back about its center, on a loop. Cheapest effect in the set: it strokes the crisp un-flattened path once and only applies a uniform Canvas.scale, so there is no per-point transform.

Drive it with a ping-pong controller (loops + autoReverse); the eased t oscillates 0→1→0 for a calm inhale/exhale.

Inheritance

Constructors

IconBreathe({Duration duration = IconMotion.iconBreathe, double amplitude = 0.06, Curve curve = Curves.easeInOut})
const

Properties

amplitude double
Peak scale increase (0.06 = +6%).
final
autoReverse bool
no setteroverride
curve Curve
final
duration Duration
Play time for one cycle. The widget sizes its controller to this.
final
hashCode int
The hash code for this object.
no setterinherited
loops bool
When true the controller AnimationController.repeats (pair with autoReverse for a ping-pong such as a breathe).
no setteroverride
restValue double
The progress value to show at rest — when autoplay is off, before the first play, and (crucially) under reduced-motion, which renders this single settled frame instead of animating. e.g. 1.0 for a draw-on that should rest fully drawn, 0.0 for a spin that rests front-facing.
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
paint(Canvas canvas, Size size, IconGeometry geom, double t, Paint paint) → void
Paint one frame. size is the icon's viewBox space; t is raw 0..1.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited