writeStartMapping method

  1. @override
void writeStartMapping()
override

Begins a new YAML mapping (equivalent to an object or dictionary).

Implementations should begin a new indentation block appropriate for YAML.

Implementation

@override
void writeStartMapping() {
  _writePrefix();
  _contextStack.add(YamlNodeType.MAPPING);
  _depth++;
  _expectValue = false;
}