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

Static Properties

fast FadePreset
Fast transitions (e.g., UI sounds)
final
normal FadePreset
Standard scene transitions
final
panel FadePreset
Panel reveals and UI feedback
final

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
smoothExit → const FadePreset
Smooth exit (e.g., scene fade out)