NotificationValue class

Stores data for notification.

The content of the notification is included in title and text.

The destination of the notification is stored in target.

Other notification data is passed to data.

The whenAppOpened will be true for notifications when an app is opened, i.e., when the OS notification bar is tapped.

通知用のデータを格納します。

titletextに通知の内容が含まれます。

targetに通知の宛先が格納されます。

dataにその他の通知データが渡されます。

アプリを開いたときの通知、つまりOSの通知バーをタップした場合などにwhenAppOpenedtrueになります。

Annotations

Constructors

NotificationValue({required String title, required String text, required String target, bool whenAppOpened = false, DynamicMap data = const {}})
Stores data for notification.
const

Properties

data → DynamicMap
Data contained in the notification.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target String
ID of the target (topic token).
final
text String
Notification text.
final
title String
Title of Notice.
final
whenAppOpened bool
true` if received when the app is opened.
final

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.
override