ConfigStore class

An in-memory store of Configs. Every config is stored by a name.

Constructors

ConfigStore.new()

Properties

configs Map<String, Config<Object>>
Map of config names to configs.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Dispose and remove all Configs from this store.
get(String name) Config<Object>?
Returns a config by its name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String name) → void
Remove a Config by its name from this store.
set(String name, Config<Object> config) Config<Object>
Immediately adds a config to the store by its name.
setIfAbsent(String name, ConfigCreationCallback<Config<Object>> create) → void
Adds a Config to the store by its name if it does not already exist.
setLazy(String name, ConfigCreationCallback<Config<Object>> create) → void
Lazily adds a Config to the store by its name. The config will be created when it is first requested by the get method.
toString() String
A string representation of this object.
inherited

Operators

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