FadePreset class

Fade Preset

Defines reusable fade durations and curves for consistent audio transitions throughout the application.

Integrates with FiftyMotion tokens for consistent timing across the Fifty Flutter Kit.

Use in conjunction with BaseAudioChannel.withFade for scene transitions, character voice ducking, and ambiance changes.

Part of the Fifty Audio Engine package.

Constructors

FadePreset({required Duration duration, required Curve curve})
const

Properties

curve Curve
final
duration Duration
final
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

Constants

ambient → const FadePreset
Slow ambient fades (e.g., credits, weather shifts)
buildTension → const FadePreset
Builds tension (e.g., entering boss fight)
cinematic → const FadePreset
Cinematic or dramatic fades
fast → const FadePreset
Fast transitions (e.g., UI sounds)
normal → const FadePreset
Standard scene transitions
panel → const FadePreset
Panel reveals and UI feedback
smoothExit → const FadePreset
Smooth exit (e.g., scene fade out)