startList method

Future<void> startList()

Starts a JSON list, this is method should only be called when a value is expected.

Implementation

Future<void> startList() {
  final comma = _startContainer('startList');
  _stack.add(_ContainerState(false));
  return _writeRawString('${comma ? ',' : ''}[');
}