encodeIterable<E> method

  1. @override
void encodeIterable<E>(
  1. Iterable<E> value, {
  2. Encodable<E>? using,
})
override

Encodes an iterable of E.

Optionally takes an Encodable function to encode each element.

Implementation

@override
void encodeIterable<E>(Iterable<E> value, {Encodable<E>? using}) {
  tick();
  _packer.packListLength(value.length);
  for (final e in value) {
    encodeObject(e, using: using);
  }
}