ConfigStore class
An in-memory store of Configs. Every config is stored by a name.
Constructors
Properties
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 itsname
. -
setIfAbsent(
String name, ConfigCreationCallback< Config< create) → voidObject> > -
Adds a Config to the store by its
name
if it does not already exist. -
setLazy(
String name, ConfigCreationCallback< Config< create) → voidObject> > -
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