LinuxFlutterLocalNotificationsPlugin class

A stub implementation to satisfy compilation of multi-platform packages that depend on flutter_local_notifications_linux. This should never actually be created.

Notably, because flutter_local_notifications needs to manually register flutter_local_notifications_linux, anything with a transitive dependency on flutter_local_notifications will also depend on flutter_local_notifications_linux, not just at the pubspec level but the code level.

Inheritance
  • Object
  • PlatformInterface
  • FlutterLocalNotificationsPlatform
  • LinuxFlutterLocalNotificationsPlugin

Constructors

LinuxFlutterLocalNotificationsPlugin()
Errors on attempted instantiation of the stub. It exists only to satisfy compile-time dependencies, and should never actually be created.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel(int id) Future<void>
Cancels/removes the notification with the specified id.
inherited
cancelAll() Future<void>
Cancels/removes all notifications. This applies to notifications that have been scheduled and those that have already been presented.
inherited
getActiveNotifications() Future<List<ActiveNotification>>
Returns the list of active notifications shown by the application that haven't been dismissed/removed.
inherited
getCapabilities() Future<LinuxServerCapabilities>
Errors on attempted calling of the stub. It exists only to satisfy compile-time dependencies, and should never actually be called.
getNotificationAppLaunchDetails() Future<NotificationAppLaunchDetails?>
Returns info on if a notification had been used to launch the application.
inherited
getSystemIdMap() Future<Map<int, int>>
Errors on attempted calling of the stub. It exists only to satisfy compile-time dependencies, and should never actually be called.
initialize(LinuxInitializationSettings initializationSettings, {DidReceiveNotificationResponseCallback? onDidReceiveNotificationResponse}) Future<bool?>
Errors on attempted calling of the stub. It exists only to satisfy compile-time dependencies, and should never actually be called.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pendingNotificationRequests() Future<List<PendingNotificationRequest>>
Returns a list of notifications pending to be delivered/shown
inherited
periodicallyShow(int id, String? title, String? body, RepeatInterval repeatInterval) Future<void>
Periodically show a notification using the specified interval.
inherited
periodicallyShowWithDuration(int id, String? title, String? body, Duration repeatDurationInterval) Future<void>
Periodically show a notification using the specified custom duration interval.
inherited
show(int id, String? title, String? body, {LinuxNotificationDetails? notificationDetails, String? payload}) Future<void>
Errors on attempted calling of the stub. It exists only to satisfy compile-time dependencies, and should never actually be called.
toString() String
A string representation of this object.
inherited

Operators

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