showNativeNotification method

  1. @override
Future<void> showNativeNotification(
  1. String title,
  2. String body, {
  3. String? icon,
  4. bool sound = false,
})
override

Show a native OS notification.

Implementation

@override
Future<void> showNativeNotification(
  String title,
  String body, {
  String? icon,
  bool sound = false,
}) async {
  // In a real Flutter web app this would use the Notification API.
}