decodeListOrNull<T> method

  1. @override
List<T>? decodeListOrNull<T>(
  1. String key, {
  2. int? id,
  3. Decodable<T>? using,
})
override

Decodes the data for the given key or id as a nullable list of elements.

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

Implementation

@override
List<T>? decodeListOrNull<T>(String key, {int? id, Decodable<T>? using}) {
  var d = decoders[key] ?? decoders[id];
  return d?.clone().decodeListOrNull(using: using);
}