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