FileConfigManager class
A ConfigManager specialised for FileConfig instances.
Differs from the plain ConfigManager in that registering a config also reads its associated file in the same call, so the manager never hands out a config that has been registered but not yet populated.
- Inheritance
-
- Object
- ConfigManager<
FileConfig> - FileConfigManager
Constructors
Properties
-
configs
→ Set<
FileConfig> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findByRef(
ConfigRef? ref) → FileConfig? -
Looks up a config by
ref. Returnsnullwhen no match is found.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeConfig(
FileConfig config) → bool -
Removes
configfrom the registry. Returnstrueif it was present.inherited -
setConfig(
FileConfig config) → FileConfig -
Registers
config, replacing any existing entry with an equalref.inherited -
setFileConfig(
FileConfig fileConfig) → Future< FileConfig> -
Registers
fileConfigand reads its associated file. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited