decodeFutureOrNull<T> method

Future<T>? decodeFutureOrNull<T>({
  1. Decodable<T>? using,
})

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

Implementation

Future<T>? decodeFutureOrNull<T>({Decodable<T>? using}) {
  if (decodeIsNull()) {
    return null;
  }
  return decodeFuture<T>(using: using);
}