LiveConfigurationClient class

Constructors

LiveConfigurationClient({required LiveConfigurationOptions options, required BaseConfigurationEntryPersistance persistance, required BaseConfigurationDeserializer deserializer, Iterable<ConfigEntry>? defaultEntries, TypeDecoderOptions? typeDecoder, String? optionsSavePath})
Creates a new LiveConfigurationClient options The options to configure the client. persistance The persistance implementation to use in order to save entries locally. deserializer The configuration deserializer to use. typeDecoder The type decoder to use. It is not required unless non primitive types are needed. optionsSavePath The path where to save LiveConfigurationClient settings
LiveConfigurationClient.mock({Iterable<ConfigEntry>? defaultEntries, LiveConfigurationOptions? options, BaseConfigurationEntryPersistance? persistance, BaseConfigurationDeserializer? deserializer, String? optionsSavePath, TypeDecoderOptions? typeDecoder})
Creates a mockable instance of the LiveConfigurationClient defaultEntries the entries to use. options the options to use. persistance the persistance to use. deserializer the deserializer to use.

Properties

firstSyncCompleter Completer
A completer that can be used to await until the first synchronization is made.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAs<T>(String key) → T?
getBool(String key) bool?
getDateTime(String key) DateTime?
getDouble(String key) double?
getDuration(String key) Duration?
getInt(String key) int?
getList<T>(String key) List<T>?
getMap<TKey, TValue>(String key) Map<TKey, TValue>?
getString(String key) String?
getUint8List(String key) Uint8List?
init() Future
Initializes the live configuration client
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