MessagingPayload class

Interface representing a Firebase Cloud Messaging message payload. One or both of the data and notification keys are required.

See Build send requests for code samples and detailed documentation.

Constructors

MessagingPayload({Map<String, String>? data, NotificationMessagePayload? notification})

Properties

data Map<String, String>?
The data message payload.
final
hashCode int
The hash code for this object.
no setterinherited
notification NotificationMessagePayload?
The notification message payload.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited