show static method

Future<bool> show(
  1. int id, {
  2. String? title,
  3. String? body,
  4. Map<String, Object?>? payload,
  5. String? image,
  6. List<UNotificationAction> actions = const <UNotificationAction>[],
})

Shows a notification now; the same id replaces the old one. Web: only while the tab is open. UNotification.show(1, title: "Order shipped", body: "Arrives tomorrow")

Implementation

static Future<bool> show(int id, {String? title, String? body, Map<String, Object?>? payload, String? image, List<UNotificationAction> actions = const <UNotificationAction>[]}) =>
    UNotifyChannel.show(UNotificationRequest(id: id, title: title, body: body, payload: payload, image: image, actions: actions));