fadeIn method
Fade In
Fades from 0.0 up to _cachedTargetVolume.
Implementation
Future<void> fadeIn({
Duration duration = const Duration(seconds: 2),
Curve curve = Curves.easeInOut,
}) async {
final target = _cachedTargetVolume;
await _player.setVolume(0.0);
await fadeTo(target, duration: duration, curve: curve);
}