reload method

Future<void> reload()

Reloads the data of the document referenced by ref.

Implementation

Future<void> reload() async {
  if (ref == null) {
    throw 'Document reference is null';
  }
  DocumentSnapshot snapshot = await ref!.get();
  fromSnapshot(snapshot);
}