LocalNotification class
@property {number} buildId - 通知样式:1 为基础样式,2 为自定义样式(需先调用 setStyleCustom
设置自定义样式)
@property {number} id - 通知 id, 可用于取消通知
@property {string} title - 通知标题
@property {string} content - 通知内容
@property {object} extra - extra 字段
@property {number} fireTime - 通知触发时间(毫秒)
// iOS Only
@property {number} badge - 本地推送触发后应用角标值
// iOS Only
@property {string} soundName - 指定推送的音频文件
// iOS 10+ Only
@property {string} subtitle - 子标题
Constructors
Properties
- badge → int?
-
final
- buildId → int?
-
final
- content → String?
-
final
-
extra
→ Map<
String, String> ? -
final
- fireTime → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- soundName → String?
-
final
- subtitle → String?
-
final
- title → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited