AllNotification class

The service used to display notifications and handle callbacks when the user taps on the notification. This is a singleton. Just call Notification() to get the singleton.

Constructors

AllNotification()
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
local FlutterLocalNotificationsPlugin
read-only
plugin FlutterLocalNotificationsPlugin
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

newNotification(String channelId, String channelName, String channelDescription, String title, String body, bool vibration, int hashCode, {bool indeterminateProgressBar = false, bool usesChronometer = false, bool autoCancel = true, bool playSound = false, bool enableLights = true, Importance importance = Importance.defaultImportance, Priority priority = Priority.defaultPriority, bool showProgress = false, int maxProgress = 0, int progress = 0, int timeoutAfter, Color color = const Color.fromARGB(155, 155, 0, 255), Color ledColor = const Color.fromARGB(255, 255, 0, 0)}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
showSoundUriNotification(String channelId, String channelName, String channelDescription, String title, String body, bool vibration, int hashCode, {bool indeterminateProgressBar = false, bool usesChronometer = false, bool autoCancel = true, bool playSound = true, bool enableLights = true, Importance importance = Importance.defaultImportance, Priority priority = Priority.defaultPriority, bool showProgress = false, int maxProgress = 0, int progress = 0, String soundUri, int timeoutAfter, Color color = const Color.fromARGB(255, 255, 123, 255), Color ledColor = const Color.fromARGB(237, 25, 298, 0)}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

platformVersion Future<String>
read-only

Static Methods

drawableToUri(String drawable) Future<String>
getAlarmUri() Future<String>
this calls a method over a platform channel implemented within the plugin to return the Uri for the default alarm sound and uses as the notification sound
getCurrentAppPackageName() Future<String>
getNotificationUri() Future<String>
this calls a method over a platform channel implemented within the plugin to return the Uri for the default notification sound and uses as the notification sound
getRingToneUri() Future<String>
this calls a method over a platform channel implemented within the plugin to return the Uri for the default ringtone sound and uses as the notification sound
getTimeZoneName() Future<String>
this calls a method over a platform channel implemented within the plugin to return the default timezone name and uses as the timezone name
restartApp() Future<bool>