RemoteMessage class

A class representing a message sent from Firebase Cloud Messaging.

Constructors

RemoteMessage({String? senderId, Map<String, dynamic> data = const <String, dynamic>{}, String? from, String? messageId, String? messageType, String? title, String? body, DateTime? sentTime, int? ttl})
const
RemoteMessage.fromMap(Map<String, dynamic> map)
Constructs a RemoteMessage from a raw Map.
factory

Properties

body String?
The notification body content.
final
data Map<String, dynamic>
Any additional data sent with the message.
final
from String?
The topic name or message identifier.
final
hashCode int
The hash code for this object.
no setterinherited
messageId String?
A unique ID assigned to every message.
final
messageType String?
The message type of the message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderId String?
The ID of the upstream sender location.
final
sentTime DateTime?
The time the message was sent, represented as a DateTime.
final
title String?
The notification title.
final
ttl int?
The time to live for the message in seconds.
final

Methods

getCampaignDetails() Map<String, dynamic>
Get Campaign Details from RemoteMessage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Returns the RemoteMessage as a raw Map.
toString() String
A string representation of this object.
inherited

Operators

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