encodeTo method

  1. @override
void encodeTo(
  1. List value,
  2. Output output
)
override

Convert self to a slice and append it to the destination.

Implementation

@override
void encodeTo(List<dynamic> value, Output output) {
  assertion(value.length == codecs.length, 'Invalid list length');
  for (var i = 0; i < codecs.length; i++) {
    codecs[i].encodeTo(value[i], output);
  }
}