decodeListOrNull<E> method

  1. @override
List<E>? decodeListOrNull<E>(
  1. String key, {
  2. int? id,
  3. Decodable<E>? 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<E>? decodeListOrNull<E>(String key, {int? id, Decodable<E>? using}) {
  if (_value[key] == null) return null;
  return decodeList(key, id: id, using: using);
}