NotificationIcon class

A data class for dynamically changing the notification icon.

Constructors

NotificationIcon({required String metaDataName, Color? backgroundColor})
Constructs an instance of NotificationIcon.
const

Properties

backgroundColor → Color?
The background color for the notification icon.
final
hashCode → int
The hash code for this object.
no setterinherited
metaDataName → String
The name of the meta-data in the manifest that contains the drawable icon resource identifier.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? metaDataName, Color? backgroundColor}) → NotificationIcon
Creates a copy of the object replaced with new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns the data fields of NotificationIcon in JSON format.
toString() → String
A string representation of this object.
inherited

Operators

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