VolumeFadeStep constructor

VolumeFadeStep(
  1. Duration time,
  2. double volume
)

Creates a new volume fade step.

Implementation

VolumeFadeStep(this.time, this.volume)
    : assert(
        !time.isNegative,
        'Time must be positive',
      ),
      assert(
        volume >= 0 && volume <= 1,
        'Volume must be in the range [0, 1]',
      );