TomlDocument class
Abstract syntax tree for a TOML document.
toml = expression *( newline expression )
Constructors
-
TomlDocument(Iterable<
TomlExpression> expressions) - Creates a TOML document with the given expressions.
- TomlDocument.fromMap(Map map)
-
Creates a TOML document from the given map.
factory
Properties
-
expressions
→ List<
TomlExpression> -
The table headers and key/value pairs of the TOML document.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptVisitor<
T> (TomlVisitor< T> visitor) → T -
Invokes the correct
visit*
method for this value of the given visitor.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this document to a map from keys to values.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
-
parser
→ Parser<
TomlDocument> -
Parser for TOML documents.
final
Static Methods
-
load(
String filename) → Future< TomlDocument> - Loads the file with the given name and parses the contents as a TOML document.
-
loadSync(
String filename) → TomlDocument - Synchronously loads the file with the given name and parses the contents as a TOML document.
-
parse(
String input) → TomlDocument - Parses the given TOML document.