showNotification method

void showNotification({
  1. required String title,
  2. String? message,
  3. double duration = 3.0,
})

Shows a notification with the specified title, message, and duration.

title is the title of the notification. message is an optional message content of the notification. duration is the duration for which the notification should be displayed (default is 3.0 seconds).

Implementation

void showNotification(
    {required String title, String? message, double duration = 3.0}) {
  StorifyMeFlutterPluginPlatform.instance
      .showNotification(title: title, message: message, duration: duration);
}