writeKey method

Future<void> writeKey(
  1. String key
)

Writes a simple key string, this should only be called inside of a map and the following write needs to be a value.

Implementation

Future<void> writeKey(String key) async {
  final comma = _startKey();
  await _writeRawString('${comma ? ',' : ''}');
  await _writeRawBuffer(_encodeValue(key));
  await _writeRawString(':');
}