encodeKeyed method

  1. @override
KeyedEncoder encodeKeyed(
  1. String key, {
  2. int? id,
})
override

Starts encoding a keyed collection or key-value pairs for the given key or id.

The returned KeyedEncoder should be used to encode the key-value pairs. The KeyedEncoder.end method should be called when all key-value pairs have been encoded.

Implementation

@override
KeyedEncoder encodeKeyed(String key, {int? id}) {
  throw CodableException.unsupportedMethod('CsvKeyedEncoder', 'encodeKeyed',
      reason: 'The csv format does not support nested objects.');
}