CastMediaVolume constructor
Creates a new CastMediaVolume instance.
level
- The volume level between 0.0 and 1.0.
muted
- Whether the volume is muted.
Throws an assertion error if level is not between 0 and 1.
Implementation
CastMediaVolume(this.level, this.muted)
: assert(
level == null || (level >= 0 && level <= 1),
'level must be between 0 and 1',
);