ForegroundNotificationConfig class

(Android only) The Android operating system requires a persistent notification when running a foreground service.

Constructors

ForegroundNotificationConfig({int notificationId = defaultNotificationId, String? title, String? text, AndroidResource? smallIcon, AndroidResource? largeIcon, int priority = NOTIFICATION_PRIORITY_DEFAULT, String channelId = defaultChannelId, String? channelName, String? channelDescription, List<String>? actions})
ForegroundNotificationConfig.fromJson(String source)
factory
ForegroundNotificationConfig.fromMap(Map<String, dynamic> map)
factory

Properties

actions List<String>?
Your custom up to three action buttons on notification
getter/setter pair
channelDescription String?
the channel description of notification
getter/setter pair
channelId String
The Notification channel id
final
channelName String?
the Channel name of notification
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
largeIcon AndroidResource?
The large icon in notification body.
getter/setter pair
notificationId int
The unique notification ID
final
priority int
The priority of notification
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smallIcon AndroidResource?
the notification small icon. if null plugin will use app launcher icon.
getter/setter pair
text String?
The content of notification
getter/setter pair
title String?
The title of notification
getter/setter pair

Methods

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

Operators

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