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