YamlNode class Null safety

An interface for parsed nodes from a YAML source tree.

YamlMaps and YamlLists implement this interface in addition to the normal Map and List interfaces, so any maps and lists will be YamlNodes regardless of how they're accessed.

Scalars values like strings and numbers, on the other hand, don't have this interface by default. Instead, they can be accessed as YamlScalars via YamlMap.nodes or YamlList.nodes.

Implementers

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
span SourceSpan
The source span for this node. [...]
read-only
value → dynamic
The inner value of this node. [...]
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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