LocalizedMessage class final

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

Inheritance
  • Object
  • ProtoMessage
  • LocalizedMessage

Constructors

LocalizedMessage({String locale = '', String message = ''})
LocalizedMessage.fromJson(Object? j)
factory

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"
final
message String
The localized error message in the above locale.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
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() Object
override
toString() String
A string representation of this object.
override

Operators

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

Constants

fullyQualifiedName → const String