CastMediaVolume class
Represents the volume settings for a cast media session.
Constructors
- CastMediaVolume.new(num? level, bool? muted)
- Creates a new CastMediaVolume instance.
- CastMediaVolume.fromJson(String source)
-
Creates a CastMediaVolume from a JSON string.
factory
-
CastMediaVolume.fromMap(Map<
String, dynamic> map) -
Creates a CastMediaVolume from a map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- level ↔ num?
-
Optional current stream volume level as
a value between 0.0 and 1.0 where 1.0
is the maximum volume.
getter/setter pair
- muted ↔ bool?
-
Optional whether the Cast device is muted,
independent of the volume level.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Converts the CastMediaVolume to a JSON string.
-
toMap(
) → Map< String, dynamic> - Converts the CastMediaVolume to a map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited