decodeListOrNull<E> method

  1. @override
List<E>? decodeListOrNull<E>({
  1. Decodable<E>? using,
})
override

Decodes the data as a nullable list of elements.

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

Implementation

@override
List<E>? decodeListOrNull<E>({Decodable<E>? using}) {
  if (_done) return null;
  final key = keys.current;
  return decoder.decodeListOrNull(key is String ? key : '', id: key is int ? key : null, using: using);
}