NotificationOptions class
class NotificationOptions extends ChromeObject {
NotificationOptions({TemplateType type, String iconUrl, NotificationBitmap iconBitmap, String title, String message, String contextMessage, int priority, num eventTime, List<NotificationButton> buttons, String expandedMessage, String imageUrl, NotificationBitmap imageBitmap, List<NotificationItem> items, int progress, bool isClickable}) {
if (type != null) this.type = type;
if (iconUrl != null) this.iconUrl = iconUrl;
if (iconBitmap != null) this.iconBitmap = iconBitmap;
if (title != null) this.title = title;
if (message != null) this.message = message;
if (contextMessage != null) this.contextMessage = contextMessage;
if (priority != null) this.priority = priority;
if (eventTime != null) this.eventTime = eventTime;
if (buttons != null) this.buttons = buttons;
if (expandedMessage != null) this.expandedMessage = expandedMessage;
if (imageUrl != null) this.imageUrl = imageUrl;
if (imageBitmap != null) this.imageBitmap = imageBitmap;
if (items != null) this.items = items;
if (progress != null) this.progress = progress;
if (isClickable != null) this.isClickable = isClickable;
}
NotificationOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
TemplateType get type => _createTemplateType(jsProxy['type']);
set type(TemplateType value) => jsProxy['type'] = jsify(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);
String get title => jsProxy['title'];
set title(String value) => jsProxy['title'] = value;
String get message => jsProxy['message'];
set message(String value) => jsProxy['message'] = value;
String get contextMessage => jsProxy['contextMessage'];
set contextMessage(String value) => jsProxy['contextMessage'] = value;
int get priority => jsProxy['priority'];
set priority(int value) => jsProxy['priority'] = value;
num get eventTime => jsProxy['eventTime'];
set eventTime(num value) => jsProxy['eventTime'] = jsify(value);
List<NotificationButton> get buttons => listify(jsProxy['buttons'], _createNotificationButton);
set buttons(List<NotificationButton> value) => jsProxy['buttons'] = jsify(value);
String get expandedMessage => jsProxy['expandedMessage'];
set expandedMessage(String value) => jsProxy['expandedMessage'] = value;
String get imageUrl => jsProxy['imageUrl'];
set imageUrl(String value) => jsProxy['imageUrl'] = value;
NotificationBitmap get imageBitmap => _createNotificationBitmap(jsProxy['imageBitmap']);
set imageBitmap(NotificationBitmap value) => jsProxy['imageBitmap'] = jsify(value);
List<NotificationItem> get items => listify(jsProxy['items'], _createNotificationItem);
set items(List<NotificationItem> value) => jsProxy['items'] = jsify(value);
int get progress => jsProxy['progress'];
set progress(int value) => jsProxy['progress'] = value;
bool get isClickable => jsProxy['isClickable'];
set isClickable(bool value) => jsProxy['isClickable'] = value;
}
Extends
ChromeObject > NotificationOptions
Constructors
new NotificationOptions({TemplateType type, String iconUrl, NotificationBitmap iconBitmap, String title, String message, String contextMessage, int priority, num eventTime, List<NotificationButton> buttons, String expandedMessage, String imageUrl, NotificationBitmap imageBitmap, List<NotificationItem> items, int progress, bool isClickable}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
NotificationOptions({TemplateType type, String iconUrl, NotificationBitmap iconBitmap, String title, String message, String contextMessage, int priority, num eventTime, List<NotificationButton> buttons, String expandedMessage, String imageUrl, NotificationBitmap imageBitmap, List<NotificationItem> items, int progress, bool isClickable}) {
if (type != null) this.type = type;
if (iconUrl != null) this.iconUrl = iconUrl;
if (iconBitmap != null) this.iconBitmap = iconBitmap;
if (title != null) this.title = title;
if (message != null) this.message = message;
if (contextMessage != null) this.contextMessage = contextMessage;
if (priority != null) this.priority = priority;
if (eventTime != null) this.eventTime = eventTime;
if (buttons != null) this.buttons = buttons;
if (expandedMessage != null) this.expandedMessage = expandedMessage;
if (imageUrl != null) this.imageUrl = imageUrl;
if (imageBitmap != null) this.imageBitmap = imageBitmap;
if (items != null) this.items = items;
if (progress != null) this.progress = progress;
if (isClickable != null) this.isClickable = isClickable;
}
new NotificationOptions.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
NotificationOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
List<NotificationButton> buttons #
List<NotificationButton> get buttons => listify(jsProxy['buttons'], _createNotificationButton);
set buttons(List<NotificationButton> value) => jsProxy['buttons'] = jsify(value);
String contextMessage #
String get contextMessage => jsProxy['contextMessage'];
set contextMessage(String value) => jsProxy['contextMessage'] = value;
num eventTime #
num get eventTime => jsProxy['eventTime'];
set eventTime(num value) => jsProxy['eventTime'] = jsify(value);
String expandedMessage #
String get expandedMessage => jsProxy['expandedMessage'];
set expandedMessage(String value) => jsProxy['expandedMessage'] = value;
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;
NotificationBitmap imageBitmap #
NotificationBitmap get imageBitmap => _createNotificationBitmap(jsProxy['imageBitmap']);
set imageBitmap(NotificationBitmap value) => jsProxy['imageBitmap'] = jsify(value);
String imageUrl #
String get imageUrl => jsProxy['imageUrl'];
set imageUrl(String value) => jsProxy['imageUrl'] = value;
bool isClickable #
bool get isClickable => jsProxy['isClickable'];
set isClickable(bool value) => jsProxy['isClickable'] = value;
List<NotificationItem> items #
List<NotificationItem> get items => listify(jsProxy['items'], _createNotificationItem);
set items(List<NotificationItem> value) => jsProxy['items'] = jsify(value);
String message #
String get message => jsProxy['message'];
set message(String value) => jsProxy['message'] = value;
int priority #
int get priority => jsProxy['priority'];
set priority(int value) => jsProxy['priority'] = value;
int progress #
int get progress => jsProxy['progress'];
set progress(int value) => jsProxy['progress'] = value;
String title #
String get title => jsProxy['title'];
set title(String value) => jsProxy['title'] = value;
TemplateType type #
TemplateType get type => _createTemplateType(jsProxy['type']);
set type(TemplateType value) => jsProxy['type'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();