decodeStreamOrNull<T> method

Stream<T>? decodeStreamOrNull<T>({
  1. Decodable<T>? using,
})

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

Implementation

Stream<T>? decodeStreamOrNull<T>({Decodable<T>? using}) {
  if (decodeIsNull()) {
    return null;
  }
  return decodeStream<T>(using: using);
}