WiggleEffect class

Applies random jitter and rotation to each character.

Uses deterministic noise so each character has a unique, repeatable wiggle pattern with configurable amplitude, frequency, and rotation.

Inheritance

Constructors

WiggleEffect({Duration duration = const Duration(milliseconds: 1000), Curve curve = Curves.easeInOut, double amplitude = 4.0, double frequency = 3.0, double rotationAmplitude = 0.05, Duration delayBetweenChars = Duration.zero})
Creates a wiggling jitter effect per character.
const

Properties

amplitude double
Maximum horizontal/vertical displacement in logical pixels.
final
curve Curve
Curve applied to the animation timing for easing.
finalinherited
delayBetweenChars Duration
Delay between each successive character's animation start.
finalinherited
duration Duration
Total duration of one full animation cycle for a single character.
finalinherited
frequency double
Oscillation frequency of the wiggle.
final
hashCode int
The hash code for this object.
no setterinherited
rotationAmplitude double
Maximum rotation angle in radians for the wiggle.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyCurve(double t) double
Applies the effect's curve to a linear value t (0.0–1.0).
inherited
getAnimations(double progress, int charCount) List<CharacterAnimation>
Generates per-character noise-based jitter with rotation.
override
getTotalDuration(int charCount) Duration
Returns the total duration needed to animate all charCount characters.
override
noise(int index, [int offset = 0]) double
Returns a deterministic pseudo-random value (0.0–1.0) for the given index and optional offset.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
staggeredProgress(double globalProgress, int index, int charCount) double
Computes the per-character progress for staggered animations.
inherited
toString() String
A string representation of this object.
inherited

Operators

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