VolumeSettings.fade constructor

const VolumeSettings.fade({
  1. required Duration fadeDuration,
  2. double? volume,
  3. bool volumeEnforced = false,
})

Constructs VolumeSettings with fading volume level.

Implementation

const VolumeSettings.fade({
  required Duration fadeDuration,
  double? volume,
  bool volumeEnforced = false,
}) : this._(
        volume: volume,
        fadeDuration: fadeDuration,
        volumeEnforced: volumeEnforced,
      );