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.new(String key)
- Creates an instance of TString with the given translation key.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
write(
WebRequest rq, [Map values = const {}]) → String - Retrieves the translated string based on the current language from the WebRequest.
-
writeByLang(
String ln) → String - Retrieves the translated string based on a specified language code.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited