tr property

TString get tr

Converts the string to a TString for translation.

This extension method wraps the original string in a TString instance, which can be used to retrieve translations based on the current or specified language.

Example:

String greeting = 'hello';
var translatedGreeting = greeting.tr;

Returns a TString instance containing the original string as the translation key.

Implementation

TString get tr {
  return TString(this);
}