TomlAstBuilder class
A builder for various TOML AST nodes.
Constructors
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
-
buildArray(
Iterable items) → TomlArray -
Converts the given
items
to TOML values and creates a TomlArray from those values. -
buildDocument(
Map map) → TomlDocument - Builds a TOML document from the given map.
-
buildInlineTable(
Map map) → TomlInlineTable - Converts the given map to an inline table.
-
buildKeyValuePair(
MapEntry entry) → TomlKeyValuePair - Builds a key value pair from the given map entry.
-
buildMultilineString(
String str) → TomlMultilineString - Builds a multiline TOML string with the given value.
-
buildSimpleKey(
dynamic key) → TomlSimpleKey - Creates a key from the given string.
-
buildSinglelineString(
String str) → TomlSinglelineString - Builds a singleline TOML string with the given value.
-
buildString(
String str, {bool allowMultiline = true}) → TomlString - Converts the given string to a TomlString.
-
buildValue(
dynamic value) → TomlValue -
Builds a TomlValue for the given
value
or throws a TomlUnknownValueTypeException if the value cannot be represented by TOML. -
isMultilineString(
String str) → bool - Tests whether the given string contains newlines and thus should be encoded as a multiline string if possible.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unwrapKey(
dynamic value) → dynamic - Converts a TomlEncodableKey to an object which TOML can represent as a key.
-
unwrapValue(
dynamic value) → dynamic - Converts a TomlEncodableValue to an object which TOML can represent.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited