NotificationService class
Constructors
- NotificationService()
-
factory
Properties
- flutterLocalNotificationsPlugin → FlutterLocalNotificationsPlugin
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelAllNotifications(
) → Future< void> -
cancelNotification(
int id) → Future< void> -
getNotificationStatus(
) → Future< bool> -
initialize(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDidReceiveNotificationResponse(
NotificationResponse notificationResponse) → void -
saveNotificationStatus(
bool isEnabled) → Future< void> -
scheduleNotification(
int id, String title, String body, DateTime scheduledTime, String? payload) → Future< void> -
shouldSendNotification(
{bool? isLoggedIn, bool isNotificationEnabled = true, bool? isNotificationScheduled}) → bool -
showNotification(
int id, String title, String body, String? payload) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited