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

Constructors

FileConfigManager()

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. Returns null when no match is found.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeConfig(FileConfig config) → bool
Removes config from the registry. Returns true if it was present.
inherited
setConfig(FileConfig config) → FileConfig
Registers config, replacing any existing entry with an equal ref.
inherited
setFileConfig(FileConfig fileConfig) → Future<FileConfig>
Registers fileConfig and reads its associated file.
toString() → String
A string representation of this object.
inherited

Operators

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