Configuration class abstract

Subclasses of Configuration read YAML strings and files, assigning values from the YAML document to properties of an instance of this type.

Constructors

Configuration()
Default constructor.
Configuration.fromFile(File file)
Opens a file and reads its string contents into this instance's properties.
Configuration.fromMap(Map map)
Configuration.fromString(String contents)
contents must be YAML.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(dynamic value) → void
Ingests value into the properties of this type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate() → void
Validates this configuration.

Operators

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

Static Methods

getEnvironmentOrValue(dynamic value) → dynamic