t top-level property

_StringsEn t

Method A: Simple

No rebuild after locale change. Translation happens during initialization of the widget (call of t). Configurable via 'translate_var'.

Usage: String a = t.someKey.anotherKey; String b = t'someKey.anotherKey'; // Only for edge cases!

Implementation

_StringsEn get t => LocaleSettings.instance.currentTranslations;