decodeKeyValuePair function

(String, Object?) decodeKeyValuePair(
  1. ParsedLine line,
  2. LineCursor cursor,
  3. int baseDepth,
  4. ResolvedDecodeOptions options,
)

Decodes a key-value pair

Implementation

(String, Object?) decodeKeyValuePair(
  ParsedLine line,
  LineCursor cursor,
  int baseDepth,
  ResolvedDecodeOptions options,
) {
  cursor.advance();
  final kv = _decodeKeyValue(line.content, cursor, baseDepth, options);
  return (kv.key, kv.value);
}