Dismisses all active notifications without cancelling their respective schedules.
Note that dismissing a notification does not remove it from the notification history.
NATIVE MEDIA METHODS *********************************************
Decodes a native drawable resource into a Uint8List that can be used by
Flutter widgets.
Gets the next valid date for a notification schedule. The schedule
parameter is a valid NotificationSchedule model that specifies the
notification schedule. The optional fixedDate parameter is a DateTime
value that represents the reference date to simulate a schedule in a
different time. If this parameter is omitted, the reference date will be
set to the current date and time.
Increments the badge counter by 1 and returns the new value. If there is
no current value for the badge counter, it will be set to 1. This method is
the most performant way to increment the badge counter by a single unit.
Initializes the plugin by creating a default icon and setting up the initial
notification channels. This method only needs to be called once in the
main.dart file of your application.
Resets the global badge counter to zero. This removes any badge icon from
the app icon in the launcher. Note that resetting the badge counter does
not cancel any scheduled or active notifications.
Sets the global badge counter to the specified value. This value will be
displayed on the app's icon badge (if supported by the device). If the
amount is 0, the badge counter will be cleared.
Defines the global or static methods that will receive notification events.
Only after set at least one method, the notification's events will be delivered.
These methods require to use the notation @pragma("vm:entry-point")
The setLocalization method is used to set the desired localization for
notifications. It takes a required languageCode parameter, which is an
optional, case-insensitive String that represents the language code for
the desired localization (e.g. "en" for English, "pt-br" for Brazilian
Portuguese, "es" for Spanish, etc.). If the languageCode parameter is
null or not provided, the default localization will be loaded from the
device system.