get method Null safety

Future<DocumentSnapshot<T>> get(
  1. [GetOptions? options]

Reads the document referenced by this DocumentReference.

By providing options, this method can be configured to fetch results only from the server, only from the local cache or attempt to fetch results from the server and fall back to the cache (which is the default).


Future<DocumentSnapshot<T>> get([GetOptions? options]);