LocalNotificationService class Services

The service used for handling local notifications.

This service is used for scheduling, updating and canceling local notifications. It also handles the notification that is received when the app is terminated.

The functions are distributed over mixins to keep the code organized. The mixins for this class are:

Additionally, some functions related to local notifications are provided in the initializationSettings.dart file and receivedNotificationFunctions.dart file.

Mixed in types

Constructors

LocalNotificationService()

Properties

androidImplementation AndroidFlutterLocalNotificationsPlugin?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
iosImplementation IOSFlutterLocalNotificationsPlugin?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelEventNotification(ActivityModel event) Future<void>
Cancels the notification for an event.
inherited
checkNotificationPermission() Future<bool>
Checks if the user has given permission to send notifications.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scheduleEventNotification(ActivityModel event, int minutesInAdvance) Future<void>
Schedules a notification for an event.
inherited
toString() String
A string representation of this object.
inherited
updateNotificationIfEventTimeChanged(List<ActivityModel> events, int minutesInAdvance) Future<void>
Updates the notification for an event if the event was edited.
inherited

Operators

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