FileConfig class

Implemented types
Available extensions

Constructors

FileConfig({required File file, bool autoSave = true, int delay = DELAY_SAVE_MS})

Properties

configMap Map<String, dynamic>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acceptType<CH>(DType<CH> chtype) bool
override
acceptValue(Object? value) bool
override
all() Map<String, dynamic>
boolAttribute({required String key, bool missValue = false, AttributeTransform<bool>? transform}) BoolAttribute

Available on AttributeProvider, provided by the AttributeProviderExtend extension

boolOptional({required String key, AttributeTransform<bool>? transform}) BoolOptional

Available on AttributeProvider, provided by the AttributeProviderExtend extension

clear() → void
containsKey(String key) bool
doubleAttribute({required String key, double missValue = 0, AttributeTransform<double>? transform}) DoubleAttribute

Available on AttributeProvider, provided by the AttributeProviderExtend extension

doubleOptional({required String key, AttributeTransform<double>? transform}) DoubleOptional

Available on AttributeProvider, provided by the AttributeProviderExtend extension

get(String key) → dynamic
getAttribute(String key) Object?
override
hasAttribute(String key) bool
override
intAttribute({required String key, int missValue = 0, AttributeTransform<int>? transform}) IntAttribute

Available on AttributeProvider, provided by the AttributeProviderExtend extension

intOptional({required String key, AttributeTransform<int>? transform}) IntOptional

Available on AttributeProvider, provided by the AttributeProviderExtend extension

load({bool clear = true}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optional<T extends Object>({required String key, AttributeTransform<T>? transform}) OptionalAttribute<T>

Available on AttributeProvider, provided by the AttributeProviderExt extension

put(String key, dynamic value) → void
remove(String key) → dynamic
removeAttribute(String key) Object?
override
require<T extends Object>({required String key, required T missValue, AttributeTransform<T>? transform}) RequiredAttribute<T>

Available on AttributeProvider, provided by the AttributeProviderExt extension

save() → void
setAttribute(String key, Object? value) → void
override
stringAttribute({required String key, String missValue = "", AttributeTransform<String>? transform}) StringAttribute

Available on AttributeProvider, provided by the AttributeProviderExtend extension

stringOptional({required String key, AttributeTransform<String>? transform}) StringOptional

Available on AttributeProvider, provided by the AttributeProviderExtend extension

toString() String
A string representation of this object.
inherited

Operators

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

Constants

DELAY_SAVE_MS → const int