showNotification static method

Future<void> showNotification({
  1. int id = 0,
  2. String? title,
  3. String? body,
  4. String? payload,
})

Implementation

static Future<void> showNotification(
    {int id = 0, String? title, String? body, String? payload}) async {
  _flutterLocalNotifications.show(0, title, body, _notificationDetails(),
      payload: payload);
}