FlutterLocalNotificationController class

A NotificationController based on the flutter_local_notifications Flutter plugin.

On iOS, remember to edit the AppDelegate.swift file. See https://pub.dev/packages/flutter_local_notifications#general-setup

On Android, add an app_icon.png square png picture in the <<application_name>>/android/app/src/main/res/drawable/ folder.

Implemented types

Constructors

FlutterLocalNotificationController()
The singleton NotificationController.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
pendingNotificationRequestsCount Future<int>
The number of pending notifications.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelNotification(int id) Future<void>
Cancel (i.e., remove) the notification with id.
override
cancelTaskNotification(UserTask task) Future<void>
Cancel (i.e., remove) the notification for the task.
override
createNotification({int? id, required String title, String? body}) Future<int>
Create an immediate notification with id, title, and body. If the id is not specified, a random id will be generated.
override
createTaskNotification(UserTask task) Future<void>
Create an immediate notification for a task.
override
initialize() Future<void>
Initialize and set up the notification controller.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scheduleNotification({int? id, required String title, String? body, required DateTime schedule}) Future<int>
Schedule a notification with id, title, and body at the schedule time. If the id is not specified, a random id will be generated.
override
scheduleRecurrentNotifications({int? id, required String title, String? body, required RecurrentScheduledTrigger schedule}) Future<int>
Schedule recurrent notifications with id, title, and body at the schedule time.
override
scheduleTaskNotification(UserTask task) Future<void>
Schedule a notification for a task at the task.triggerTime.
override
toString() String
A string representation of this object.
inherited

Operators

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