ScrambleEffect class

Characters randomly scramble and unscramble into the final text.

Each character shows a random symbol until its reveal time, which is determined by deterministic noise. The result is a sci-fi/hacker-style decryption effect.

ScrambleEffect(seed: 42, charset: '01')
Inheritance

Constructors

ScrambleEffect({Duration duration = const Duration(milliseconds: 2000), Curve curve = Curves.easeOut, Duration delayBetweenChars = const Duration(milliseconds: 30), int seed = 42, String charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'})
Creates a scramble/unscramble animation.
const

Properties

charset String
Characters used for the scrambled display (default: alphanumeric).
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
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int
Seed for the deterministic scramble pattern.
final

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 random char override until noise-based reveal.
override
getTotalDuration(int charCount) Duration
Returns the total duration needed to animate all charCount characters.
inherited
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