UserFacingMessage class

Provides a user-facing message with locale info.

The maximum message length is 4096 characters.

Constructors

UserFacingMessage({String? defaultMessage, Map<String, String>? localizedMessages})
UserFacingMessage.fromJson(Map json_)

Properties

defaultMessage String?
The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
localizedMessages Map<String, String>?
A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr.
getter/setter pair
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>
toString() String
A string representation of this object.
inherited

Operators

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