NotificationContent class

Annotations

Constructors

NotificationContent({String? title, String? subtitle, String? body, int? badge, String? sound, String? launchImageName, Map<String, Object>? userInfo, List<Object>? attachments})
Create a NotificationContent
const

Properties

attachments List<Object>?
attachments Attachments displayed with notification.
final
badge int?
badge Badge count of the app.
final
body String?
body Body message.
final
hashCode int
The hash code for this object.
no setteroverride
launchImageName String?
launchImageName The launchImageName member of a UNNotificationContent object.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sound String?
sound Name of the notification sound.
final
subtitle String?
subtitle Subtitle displayed.
final
title String?
title Title displayed in notification.
final
userInfo Map<String, Object>?
userInfo The UserInfo map.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
Converts the notification content object to JSON.
toString() String
A string representation of this object.
inherited

Operators

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