InMemoryConfigsManager class
- Inheritance
-
- Object
- ConfigsManager
- InMemoryConfigsManager
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store ↔ ConfigStore
-
All Configs are stored by their name in this ConfigStore.
getter/setter pair
Methods
-
dispose(
) → void -
Disposes the stored Configs and clears the ConfigStore.
override
-
get(
[String name = 'default']) → Config< Object> -
Returns a config by its
name
.override -
isA(
Object id, [String name = defaultConfigName]) → bool -
Returns
true
if the Config stored in the ConfigStore under the givenname
has a matchingid
with its Config.id.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
{String name = defaultConfigName, required 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.override -
setIfAbsent(
{String name = defaultConfigName, required ConfigCreationCallback< Config< create}) → voidObject> > -
Adds a Config to the store by its
name
if it does not already exist.override -
setImmediately(
{String name = defaultConfigName, required Config< Object> config}) → Config<Object> -
Immediately adds a
config
to the store by itsname
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited