decodeFutureOrNull<T> method

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

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

Implementation

Future<T>? decodeFutureOrNull<T>(String key, {int? id, Decodable<T>? using}) {
  if (decodeIsNull(key, id: id)) {
    return null;
  }
  return decodeFuture<T>(key, id: id, using: using);
}