showNotification static method

LocalNotification showNotification({
  1. String? title,
  2. String? subTitle,
  3. String? body,
  4. List<LocalNotificationAction>? actions,
})

Implementation

static LocalNotification showNotification({String? title, String? subTitle, String? body, List<LocalNotificationAction>? actions}) {
  var notificaion = LocalNotification(title: title.toNotNull, subtitle: subTitle.toNotNull, body: body.toNotNull, identifier: PageStorageKey(DateTime.now().microsecondsSinceEpoch).value.toString(), actions: actions, silent: false);
  notificaion.show();
  return notificaion;
}