NotificationData class
Base notification data that is shared between different notification states
Constructors
- NotificationData.new({required String title, required String body, required PushNotificationPayload payload, String? linkMobile})
-
Creates a notification data instance
const
-
NotificationData.fromJson(Map<
String, dynamic> json) -
Creates a notification data instance from JSON
factory
Properties
- body → String
-
Notification body
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- linkMobile → String?
-
Mobile link for the notification
final
- payload → PushNotificationPayload
-
Notification payload
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Notification title
final
Methods
-
copyWith(
{String? title, String? body, PushNotificationPayload? payload, String? linkMobile}) → NotificationData - Creates a copy of this notification data with the given fields replaced
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the notification data to a JSON map
-
toString(
) → String -
A string representation of this object.
inherited
-
toUserNotification(
) → UserNotification
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override