NotificationOptions class

Constructors

NotificationOptions({TemplateType? type, String? iconUrl, NotificationBitmap? iconBitmap, String? appIconMaskUrl, NotificationBitmap? appIconMaskBitmap, String? title, String? message, String? contextMessage, int? priority, double? eventTime, List<NotificationButton>? buttons, String? expandedMessage, String? imageUrl, NotificationBitmap? imageBitmap, List<NotificationItem>? items, int? progress, bool? isClickable, bool? requireInteraction, bool? silent})
NotificationOptions.fromJS(NotificationOptions _wrapped)

Properties

appIconMaskBitmap NotificationBitmap?
getter/setter pair
appIconMaskUrl String?
A URL to the app icon mask. URLs have the same restrictions as $(ref:notifications.NotificationOptions.iconUrl iconUrl).
getter/setter pair
buttons List<NotificationButton>?
Text and icons for up to two notification action buttons.
getter/setter pair
contextMessage String?
Alternate notification content with a lower-weight font.
getter/setter pair
eventTime double?
A timestamp associated with the notification, in milliseconds past the epoch (e.g. Date.now() + n).
getter/setter pair
expandedMessage String?
Secondary notification content.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
iconBitmap NotificationBitmap?
getter/setter pair
iconUrl String?
A URL to the sender's avatar, app icon, or a thumbnail for image notifications.
getter/setter pair
imageBitmap NotificationBitmap?
getter/setter pair
imageUrl String?
A URL to the image thumbnail for image-type notifications. URLs have the same restrictions as $(ref:notifications.NotificationOptions.iconUrl iconUrl).
getter/setter pair
isClickable bool?
getter/setter pair
items List<NotificationItem>?
Items for multi-item notifications. Users on Mac OS X only see the first item.
getter/setter pair
message String?
Main notification content. Required for notifications.create method.
getter/setter pair
priority int?
Priority ranges from -2 to 2. -2 is lowest priority. 2 is highest. Zero is default. On platforms that don't support a notification center (Windows, Linux & Mac), -2 and -1 result in an error as notifications with those priorities will not be shown at all.
getter/setter pair
progress int?
Current progress ranges from 0 to 100.
getter/setter pair
requireInteraction bool?
Indicates that the notification should remain visible on screen until the user activates or dismisses the notification. This defaults to false.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
silent bool?
Indicates that no sounds or vibrations should be made when the notification is being shown. This defaults to false.
getter/setter pair
title String?
Title of the notification (e.g. sender name for email). Required for notifications.create method.
getter/setter pair
toJS → NotificationOptions
no setter
type TemplateType?
Which type of notification to display. Required for notifications.create method.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited