LocalizedMessage class

Provides a localized error message that is safe to return to the user which can be attached to an RPC error.

Constructors

LocalizedMessage({String? locale, String? message})
LocalizedMessage.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
locale String?
The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
getter/setter pair
message String?
The localized error message in the above locale.
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