AndroidNotification class

Notification to send to android devices.

Constructors

AndroidNotification({String? body, List<String>? bodyLocArgs, String? bodyLocKey, bool? bypassProxyNotification, String? channelId, String? clickAction, String? color, bool? defaultLightSettings, bool? defaultSound, bool? defaultVibrateTimings, String? eventTime, String? icon, String? image, LightSettings? lightSettings, bool? localOnly, int? notificationCount, String? notificationPriority, String? sound, bool? sticky, String? tag, String? ticker, String? title, List<String>? titleLocArgs, String? titleLocKey, List<String>? vibrateTimings, String? visibility})
AndroidNotification.fromJson(Map _json)

Properties

body String?
The notification's body text.
getter/setter pair
bodyLocArgs List<String>?
Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
getter/setter pair
bodyLocKey String?
The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
getter/setter pair
bypassProxyNotification bool?
If set, display notifications delivered to the device will be handled by the app instead of the proxy.
getter/setter pair
channelId String?
The notification's channel id (new in Android O).
getter/setter pair
clickAction String?
The action associated with a user click on the notification.
getter/setter pair
color String?
The notification's icon color, expressed in #rrggbb format.
getter/setter pair
defaultLightSettings bool?
If set to true, use the Android framework's default LED light settings for the notification.
getter/setter pair
defaultSound bool?
If set to true, use the Android framework's default sound for the notification.
getter/setter pair
defaultVibrateTimings bool?
If set to true, use the Android framework's default vibrate pattern for the notification.
getter/setter pair
eventTime String?
Set the time that the event in the notification occurred.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon String?
The notification's icon.
getter/setter pair
image String?
Contains the URL of an image that is going to be displayed in a notification.
getter/setter pair
lightSettings LightSettings?
Settings to control the notification's LED blinking rate and color if LED is available on the device.
getter/setter pair
localOnly bool?
Set whether or not this notification is relevant only to the current device.
getter/setter pair
notificationCount int?
Sets the number of items this notification represents.
getter/setter pair
notificationPriority String?
Set the relative priority for this notification.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sound String?
The sound to play when the device receives the notification.
getter/setter pair
sticky bool?
When set to false or unset, the notification is automatically dismissed when the user clicks it in the panel.
getter/setter pair
tag String?
Identifier used to replace existing notifications in the notification drawer.
getter/setter pair
ticker String?
Sets the "ticker" text, which is sent to accessibility services.
getter/setter pair
title String?
The notification's title.
getter/setter pair
titleLocArgs List<String>?
Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
getter/setter pair
titleLocKey String?
The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
getter/setter pair
vibrateTimings List<String>?
Set the vibration pattern to use.
getter/setter pair
visibility String?
Set the Notification.visibility of the notification. Possible string values are:
getter/setter pair

Methods

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

Operators

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