WebNotificationController constructor

WebNotificationController({
  1. required String id,
  2. required WebNotification notification,
})

Class representing a web notification controller.

This class provides methods to report the notification has been displayed, clicked, or closed as required by the ICoreWebView2Notification interface.

Implementation

WebNotificationController({
  required String id,
  required WebNotification notification,
}) : this.fromPlatformCreationParams(
       params: PlatformWebNotificationControllerCreationParams(
         id: id,
         notification: notification,
       ),
     );