LocalisyncClient class final

Instance-scoped translation client. Reads never await initialization or perform I/O.

Constructors

LocalisyncClient({required LocalisyncConfig config, required DeliveryTransport transport, required DeliveryCache cache, DiagnosticSink? diagnostics, ContentPreparer preparer = const CooperativePreparer(), DeliveryVerification verification = const CooperativeVerification()})

Properties

availableLocales → List<String>
no setter
changes → Stream<LocalisyncStatus>
no setter
config → LocalisyncConfig
final
hashCode → int
The hash code for this object.
no setterinherited
hasPending → bool
no setter
locale → String
no setter
ready ↔ Future<UpdateResult>
latefinal
releaseId → String?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → LocalisyncStatus
no setter

Methods

activatePending() → Future<UpdateResult>
dispose() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() → Future<UpdateResult>
resolve(String key, {Map<String, Object> arguments = const {}, String? locale, String? defaultValue}) → TranslationResult
setLocale(String locale) → Future<UpdateResult>
toString() → String
A string representation of this object.
inherited
translate(String key, {Map<String, Object> arguments = const {}, String? locale, String? defaultValue}) → String

Operators

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