NotificationIconData class

Data for setting the notification icon.

Constructors

NotificationIconData({required ResourceType resType, required ResourcePrefix resPrefix, required String name, Color? backgroundColor})
Constructs an instance of NotificationIconData.
const

Properties

backgroundColor Color?
Notification icon background color.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Notification icon name without prefix.
final
resPrefix ResourcePrefix
The resource prefix of the notification icon. If the notification icon name is ic_simple_notification, set it to ResourcePrefix.ic and set name to simple_notification.
final
resType ResourceType
The resource type of the notification icon. If the resource is in the drawable folder, set it to ResourceType.drawable, if the resource is in the mipmap folder, set it to ResourceType.mipmap.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the data fields of NotificationIconData in JSON format.
toString() String
A string representation of this object.
inherited

Operators

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