HuaweiPushMessage class

华为推送消息模型

Constructors

HuaweiPushMessage({String? messageId, String? messageType, String? title, String? body, Map<String, dynamic>? data, String? notificationId, String? notificationTag, String? clickAction, String? channelId, String? icon, String? color, String? sound, int? timestamp})
const
HuaweiPushMessage.fromMap(Map<String, dynamic> map)
从Map创建HuaweiPushMessage实例
factory

Properties

body String?
消息内容
final
channelId String?
通知渠道ID
final
clickAction String?
点击动作
final
color String?
颜色
final
data Map<String, dynamic>?
自定义数据
final
hashCode int
The hash code for this object.
no setteroverride
icon String?
图标
final
messageId String?
消息ID
final
messageType String?
消息类型
final
notificationId String?
通知ID
final
notificationTag String?
通知标签
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sound String?
声音
final
timestamp int?
接收时间戳
final
title String?
消息标题
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
转换为Map
toString() String
A string representation of this object.
override

Operators

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