Properties
hashCode
→ int
The hash code for this object.
no setter inherited
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 setter inherited
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.
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.
lokalise_flutter_sdk 1.3.0