InMemoryConfigsManager class

A manager of Configs which can be used to store and retrieve Config for a scope.

Inheritance

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 given name has a matching id 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<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.
override
setIfAbsent({String name = defaultConfigName, required ConfigCreationCallback<Config<Object>> create}) → void
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 its name.
override
toString() String
A string representation of this object.
inherited

Operators

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