TString class

Class representing a translatable string. Use this class to handle translations of a string based on the current or specified language.

Constructors

TString(String key)
Creates an instance of TString with the given translation key.

Properties

hashCode → int
The hash code for this object.
no setterinherited
key ↔ String
The translation key for this string.
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
toString([Map values = const {}]) → String
A string representation of this object.
override
write([Map values = const {}]) → String
Retrieves the translated string based on the current language from the Request.
writeByLang(String ln, [Map values = const {}]) → String
Retrieves the translated string based on a specified language code.
writeByLangArr(String ln, [List values = const []]) → String

Operators

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