Lokalise class abstract

Constructors

Lokalise()

Properties

hashCode int
The hash code for this object.
no setterinherited
metadata Map<String, List<String>>
Internal method used in l10n.dart to set the translations metadata
no getter
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
update() Future<UpdateResult>
Checks the latest remote bundle or the one assigned to the app version following the bundle freeze settings and update the local translations with it if needed.

Operators

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

Static Properties

instance Lokalise
Get the Lokalise singleton instance
no setter

Static Methods

init({required String projectId, required String sdkToken, String appVersion = '', bool preRelease = false, bool logging = false}) Future<void>
Initializes Lokalise.
initMock({Map<Locale, Map<String, String>>? cachedBundleTranslations, Map<Locale, Map<String, String>>? remoteBundleTranslations}) Future<void>
Initializes Lokalise for testing, without saving data or performing API calls.