TomlLeafNode class final

A node holding a primitive TOML value: string, number, bool, or date/time.

Inheritance

Constructors

TomlLeafNode({required String key, required String path, required int depth, required bool isArrayElement, required Object? value})
Creates a leaf node wrapping a primitive value.
const

Properties

children → List<TomlNode>
The child nodes, computed lazily. Empty for leaves.
no setteroverride
depth → int
Nesting depth, starting at 0 for top-level entries.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
isArrayElement → bool
Whether this node is an element of an array (rather than a table entry).
finalinherited
isExpandable → bool
Whether this node has children that can be revealed.
no setteroverride
isRoot → bool
Whether this node is a top-level entry of the document.
no setterinherited
key → String
The display label for this node.
finalinherited
path → String
The unique dotted/bracketed path of this node, e.g. server.ports[1].
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeName → String
A human-readable type name, e.g. int, String, Table, Array.
no setterinherited
value → Object?
The raw Dart value this node wraps.
final

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
inherited