Tolgee class

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

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

Static Properties

baseLocale Locale
Returns the base language
no setter
currentLocale Locale?
Returns the current locale
no setter
localizationDelegates Iterable<LocalizationsDelegate>
Returns TolgeeLocalizationDelegate
no setter
supportedLocales Iterable<Locale>
Returns list of supported locales
no setter

Static Methods

highlightTolgeeWidgets() → void
Toggle highlight of Tolgee widgets.
init({String? apiKey, String? apiUrl}) Future<void>
Initializes Tolgee apiKey is the Tolgee API key apiUrl is the Tolgee API URL If apiKey and apiUrl are not provided, Tolgee will be initialized in static mode. If apiKey and apiUrl are provided, Tolgee will be initialized in remote mode. In remote mode, translations will be fetched from Tolgee Cloud. In static mode, translations will be fetched from local files.
setCurrentLocale(Locale locale) → void
Sets the current locale