Dart Documentationchrome.notificationsNotificationBitmap

NotificationBitmap class

class NotificationBitmap extends ChromeObject {
 NotificationBitmap({int width, int height, ArrayBuffer data}) {
   if (width != null) this.width = width;
   if (height != null) this.height = height;
   if (data != null) this.data = data;
 }
 NotificationBitmap.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 int get width => jsProxy['width'];
 set width(int value) => jsProxy['width'] = value;

 int get height => jsProxy['height'];
 set height(int value) => jsProxy['height'] = value;

 ArrayBuffer get data => _createArrayBuffer(jsProxy['data']);
 set data(ArrayBuffer value) => jsProxy['data'] = jsify(value);
}

Extends

ChromeObject > NotificationBitmap

Constructors

new NotificationBitmap({int width, int height, ArrayBuffer data}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
NotificationBitmap({int width, int height, ArrayBuffer data}) {
 if (width != null) this.width = width;
 if (height != null) this.height = height;
 if (data != null) this.data = data;
}

new NotificationBitmap.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
NotificationBitmap.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

ArrayBuffer data #

ArrayBuffer get data => _createArrayBuffer(jsProxy['data']);
set data(ArrayBuffer value) => jsProxy['data'] = jsify(value);

int height #

int get height => jsProxy['height'];
set height(int value) => jsProxy['height'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int width #

int get width => jsProxy['width'];
set width(int value) => jsProxy['width'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();