AndroidNotification class Null safety

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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