yaml_modify library

The yamlicious library.

Adds support for writing yaml files. Ideally this should be folded into the core yaml package.

Classes

CollectionStyle
An enum of collection styles.
ScalarStyle
An enum of source scalar styles.
TagDirective
A directive describing a custom tag handle.
VersionDirective
A directive indicating which version of YAML a document was written to.
YamlDocument
A YAML document, complete with metadata.
YamlList
A read-only List parsed from YAML.
YamlMap
A read-only Map parsed from YAML.
YamlNode
An interface for parsed nodes from a YAML source tree. [...]
YamlScalar
A wrapped scalar value parsed from YAML.

Properties

yamlWarningCallback YamlWarningCallback
A callback for emitting a warning. [...]
read / write

Functions

getModifiableNode(dynamic node) → dynamic
loadYaml(String yaml, {dynamic sourceUrl}) → dynamic
Loads a single document from a YAML string. [...]
loadYamlDocument(String yaml, {dynamic sourceUrl}) YamlDocument
Loads a single document from a YAML string as a YamlDocument. [...]
loadYamlDocuments(String yaml, {dynamic sourceUrl}) → List<YamlDocument>
Loads a stream of documents from a YAML string. [...]
loadYamlNode(String yaml, {dynamic sourceUrl}) YamlNode
Loads a single document from a YAML string as a YamlNode. [...]
loadYamlStream(String yaml, {dynamic sourceUrl}) YamlList
Loads a stream of documents from a YAML string. [...]
toYamlString(dynamic node) → String
Serializes node into a String and returns it.
writeYamlString(dynamic node, StringSink sink) → void
Serializes node into a String and writes it to the sink.

Typedefs

YamlWarningCallback(String message, [SourceSpan span]) → dynamic
A callback for emitting a warning. [...]

Exceptions / Errors

YamlException
An error thrown by the YAML processor.