decodeStreamOrNull<T> method

Stream<T>? decodeStreamOrNull<T>(
  1. String key, {
  2. int? id,
  3. Decodable<T>? using,
})

Decodes a Stream of T or null using the provided Decodable.

Implementation

Stream<T>? decodeStreamOrNull<T>(String key, {int? id, Decodable<T>? using}) {
  if (decodeIsNull(key, id: id)) {
    return null;
  }
  return decodeStream<T>(key, id: id, using: using);
}