PushNotificationOpened.fromFields constructor

PushNotificationOpened.fromFields({
  1. required String title,
  2. required String body,
  3. required PushNotificationPayload payload,
  4. String? linkMobile,
})

Creates an opened state from individual notification fields

Implementation

factory PushNotificationOpened.fromFields({
  required String title,
  required String body,
  required PushNotificationPayload payload,
  String? linkMobile,
}) {
  return PushNotificationOpened(
    data: NotificationData(
      title: title,
      body: body,
      payload: payload,
      linkMobile: linkMobile,
    ),
  );
}