Configuration class Null safety

Implements static functions for files and directories in the sync variant.

Inheritance

Constructors

Configuration(String directory, String? filePrefix, BaseLogger logger)
Constructor: reads the configuration file. directory: the configuration file will be searched here filePrefix: the filename without extension. The extension will be found automatically
Configuration.fromFile(String _filename, BaseLogger logger)
Constructor with a given filename.

Properties

filename String
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
read-only, inherited
isNotEmpty bool
read-only, inherited
logger BaseLogger
@protected, read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
yamlMap Map
@protected, read / write, inherited

Methods

asBool(String key, {String? section}) bool
Returns a bool value given by section and key. key: the key of the (key value) pair section: if given the (key value) pair is searched in this section
inherited
asFloat(String key, {String? section, double? defaultValue}) double?
Returns a float value given by section and key. key: the key of the (key value) pair section: if given the (key value) pair is searched in this section defaultValue: if the key does not exists this value is returned
inherited
asInt(String key, {String? section, int? defaultValue}) int?
Returns an int value given by section and key. key: the key of the (key value) pair section: if given the (key value) pair is searched in this section defaultValue: if the key does not exists this value is returned
inherited
asString(String key, {String? section, String? defaultValue}) String?
Returns a string value given by section and key. key: the key of the (key value) pair section: if given the (key value) pair is searched in this section defaultValue: if the key does not exists this value is returned
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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