LocalNotification class

基础信息设置

Implementers

Constructors

LocalNotification({required int id, String title = 'title', String content = 'content', int fireTime = 1, Map<String, String> extra = const {}, int? badge})
const

Properties

badge int?
本地推送触发后应用角标值
final
content String
通知内容
final
extra Map<String, String>
extra 字段
final
fireTime int
通知触发时间(秒)
final
hashCode int
The hash code for this object.
no setterinherited
id int
通知 id, 可用于取消通知
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
通知标题
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAndroid() LocalNotificationWithAndroid
toIOS() LocalNotificationWithIOS
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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