show static method
Future<void>
show({
- required String title,
- required String body,
- NotifyIcon? icon,
- NotifySound? sound,
- List<
NotifyAction> ? actions, - String? payload,
Implementation
static Future<void> show({
required String title,
required String body,
NotifyIcon? icon,
NotifySound? sound,
List<NotifyAction>? actions,
String? payload,
}) async {
final notificationSound = sound ?? _defaultSound;
final notificationIcon = icon ?? _defaultIcon;
final NotificationDetails details = _createDetails(
notificationIcon,
notificationSound,
actions,
);
await _notificationsPlugin.show(
_idCounter++,
title,
body,
details,
payload: payload,
);
}