DeviceProperties class
class DeviceProperties extends ChromeObject {
DeviceProperties({bool isMuted, num volume, num gain}) {
if (isMuted != null) this.isMuted = isMuted;
if (volume != null) this.volume = volume;
if (gain != null) this.gain = gain;
}
DeviceProperties.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
bool get isMuted => jsProxy['isMuted'];
set isMuted(bool value) => jsProxy['isMuted'] = value;
num get volume => jsProxy['volume'];
set volume(num value) => jsProxy['volume'] = jsify(value);
num get gain => jsProxy['gain'];
set gain(num value) => jsProxy['gain'] = jsify(value);
}
Extends
ChromeObject > DeviceProperties
Constructors
new DeviceProperties({bool isMuted, num volume, num gain}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
DeviceProperties({bool isMuted, num volume, num gain}) {
if (isMuted != null) this.isMuted = isMuted;
if (volume != null) this.volume = volume;
if (gain != null) this.gain = gain;
}
new DeviceProperties.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
DeviceProperties.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
num gain #
num get gain => jsProxy['gain'];
set gain(num value) => jsProxy['gain'] = jsify(value);
bool isMuted #
bool get isMuted => jsProxy['isMuted'];
set isMuted(bool value) => jsProxy['isMuted'] = value;
num volume #
num get volume => jsProxy['volume'];
set volume(num value) => jsProxy['volume'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();