StringYamlGenerator class final
Internal YamlGenerator implementation that writes YAML into a StringBuffer.
Manages syntactically correct YAML output with proper indentation and structure.
- Implemented types
Constructors
- StringYamlGenerator({int indentSize = 2})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- indentSize → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → FutureOr< void> - Closes this resource, relinquishing any underlying resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
writeBoolean(
bool value) → void -
Writes a boolean scalar value.
override
-
writeEndMapping(
) → void -
Closes the current YAML mapping.
override
-
writeEndSequence(
) → void -
Ends the current YAML sequence.
override
-
writeKey(
String key) → void -
Writes a mapping key for a YAML object.
override
-
writeNull(
) → void -
Writes a null value, typically rendered as
nullin YAML.override -
writeNumber(
num value) → void -
Writes a numeric scalar value.
override
-
writeStartMapping(
) → void -
Begins a new YAML mapping (equivalent to an object or dictionary).
override
-
writeStartSequence(
) → void -
Begins a YAML sequence (list).
override
-
writeString(
String value) → void -
Writes a string value.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited