LocalNotification class
- Mixed in types
Constructors
-
LocalNotification({String? identifier, required String title, String? subtitle, String? body, bool silent = false, List<
LocalNotificationAction> ? actions}) -
LocalNotification.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
actions
↔ List<
LocalNotificationAction> ? -
Representing the actions of the notification.
getter/setter pair
- body ↔ String?
-
Representing the body of the notification.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier ↔ String
-
getter/setter pair
- onClick ↔ VoidCallback?
-
getter/setter pair
-
onClickAction
↔ ValueChanged<
int> ? -
getter/setter pair
-
onClose
↔ ValueChanged<
LocalNotificationCloseReason> ? -
getter/setter pair
- onShow ↔ VoidCallback?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- silent ↔ bool
-
Representing whether the notification is silent.
getter/setter pair
- subtitle ↔ String?
-
Representing the subtitle of the notification.
getter/setter pair
- title ↔ String
-
Representing the title of the notification.
getter/setter pair
Methods
-
close(
) → Future< void> - Closes the notification immediately.
-
destroy(
) → Future< void> - Destroys the notification immediately.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLocalNotificationClick(
LocalNotification notification) → void -
override
-
onLocalNotificationClickAction(
LocalNotification notification, int actionIndex) → void -
override
-
onLocalNotificationClose(
LocalNotification notification, LocalNotificationCloseReason closeReason) → void -
override
-
onLocalNotificationShow(
LocalNotification notification) → void -
override
-
show(
) → Future< void> - Immediately shows the notification to the user
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited