decodeList<I> method

  1. @override
List<I> decodeList<I>({
  1. Decodable<I>? using,
})
override

Decodes the data as a list of elements.

Optionally takes a Decodable to decode the elements of the list.

Implementation

@override
List<I> decodeList<I>({Decodable<I>? using}) {
  var n = _unpacker.unpackListLength();
  return [
    for (var i = 0; i < n; i++) decodeObject(using: using),
  ];
}