fadeIn method
Future<void>
fadeIn({
- Duration? duration,
- required Source source,
- double? volume,
- double? balance,
- AudioContext? ctx,
- Duration? position,
- PlayerMode? mode,
- dynamic beforeStart(
- MiniPlayer
inherited
fade in audio file
Implementation
Future<void> fadeIn(
{Duration? duration,
required Source source,
double? volume,
double? balance,
AudioContext? ctx,
Duration? position,
PlayerMode? mode,
Function(MiniPlayer)? beforeStart}) async {
return play(source, volume: volume, balance: balance, ctx: ctx, position: position, mode: mode, beforePlay: beforeStart)
..then((value) {
_fadeRemaining == null;
_fade(
duration: duration ?? defaultFadeDuration,
fadeMode: FadeMode.fadeIn,
);
});
}