showQuick method

Future<void> showQuick(
  1. String title, {
  2. String? body,
  3. NotificationType type = NotificationType.info,
})

Convenience method — creates and shows a simple notification.

Implementation

Future<void> showQuick(
  String title, {
  String? body,
  NotificationType type = NotificationType.info,
}) async {
  final notification = AppNotification(
    id: _generateId(),
    type: type,
    title: title,
    body: body,
  );
  await show(notification);
}