discontinuedPackage webapp has been discontinued and replaced by finch.

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() → 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