LocalNotification class

PRIORITY与IMPORTANCE 相互转换关系

  • PRIORITY_MIN = -2 对应 IMPORTANCE_MIN = 1;
  • PRIORITY_LOW = -1; 对应 IMPORTANCE_LOW = 2;
  • PRIORITY_DEFAULT = 0; 对应 IMPORTANCE_DEFAULT = 3;
  • PRIORITY_HIGH = 1; 对应 IMPORTANCE_HIGH = 4;
  • PRIORITY_MAX = 2; 对应 IMPORTANCE_MAX = 5;

Constructors

LocalNotification({int? id, String? title, String? content, DateTime? fireTime, Map<String, String>? extra, int? priority, String? category, int? badge = 0, String? soundName, String? subtitle})
const

Properties

badge int?
final
category String?
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
priority 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