Subclasses of ConfigurationItem read YAML strings and files, assigning values from the YAML to properties of the subclass.
- Implemented by
Constructors
- ConfigurationItem()
-
Default constructor.
- ConfigurationItem.fromFile(String name)
-
Opens a file and reads its string contents into this instance's properties.
- ConfigurationItem.fromMap(Map map)
- ConfigurationItem.fromString(String contents)
-
Loads a YAML-compliant string into this instance's properties.
Properties
- hashCode → int
-
The hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
decode(
anything) → void -
Subclasses may override this method to read from something that is not a Map.
-
noSuchMethod(
Invocation i) → dynamic -
Invoked when a non-existent method or property is accessed.
-
readFromMap(
Map<String, dynamic> items) → void -
validate(
) → List<String> -
Subclasses may override this method in order to validate the values of properties.
-
toString(
) → String -
Returns a string representation of this object.
inherited