RemoteNotification class

A class representing a notification which has been constructed and sent to the device via FCM.

This class can be accessed via a RemoteMessage.notification.

Constructors

RemoteNotification({AndroidNotification? android, AppleNotification? apple, WebNotification? web, String? title, List<String> titleLocArgs = const <String>[], String? titleLocKey, String? body, List<String> bodyLocArgs = const <String>[], String? bodyLocKey})
const
RemoteNotification.fromMap(Map<String, dynamic> map)
Constructs a RemoteNotification from a raw Map.
factory

Properties

android → AndroidNotification?
Android specific notification properties.
final
apple → AppleNotification?
Apple specific notification properties.
final
body → String?
The notification body content.
final
bodyLocArgs → List<String>
Any arguments that should be formatted into the resource specified by bodyLocKey.
final
bodyLocKey → String?
The native localization key for the notification body content.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
The notification title.
final
titleLocArgs → List<String>
Any arguments that should be formatted into the resource specified by titleLocKey.
final
titleLocKey → String?
The native localization key for the notification title.
final
web → WebNotification?
Web specific notification properties.
final

Methods

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

Operators

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