VolumeFadeStep constructor
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]',
);