put static method
Lazily adds a Config to the store by its name
. The config will be created when it is first requested by the get method.
This will override any existing config with the same name. To only put if absent, use setIfAbsent
.
By default, config is stored under the name
default
.
Implementation
static void put({
String name = 'default',
required ConfigCreationCallback create,
}) {
return manager.set(
name: name,
create: create,
);
}