NotificationLocalization class

A model class that represents a set of localized strings for a notification, including the title, body, summary, large icon, big picture, and button labels.

This class is used to provide localized strings for a notification. The title and body fields are used to specify the main text of the notification, while the summary field is used to provide a brief summary or additional context. The largeIcon and bigPicture fields can be used to specify images or icons that are displayed alongside the notification text, and the buttonLabels field can be used to provide localized labels for the action buttons that are associated with the notification.

Constructors

NotificationLocalization({String? title, String? body, String? summary, String? largeIcon, String? bigPicture, Map<String, String>? buttonLabels})
Creates a new instance of the NotificationLocalization class. If any of the respective parameters is set to null, the original content is preserved.

Properties

bigPicture String?
getter/setter pair
body String?
getter/setter pair
buttonLabels Map<String, String>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
largeIcon String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
summary String?
getter/setter pair
title String?
getter/setter pair

Methods

fromMap(Map<String, dynamic> mapData) NotificationLocalization?
Parses the input mapData into a new NotificationLocalization instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the current instance of NotificationLocalization to a Map instance.
toString() String
A string representation of this object.
inherited
validate() → void
Validates the notification localization settings.

Operators

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