load method

Future<T> load()

Loads the DatabaseObject from the DocumentReference and caches it.

Implementation

Future<T> load() async {
  if (_objectCache != null) {
    return _objectCache!;
  }
  _objectCache =
      await DatabaseObject.loadReference(documentReference, create);
  return _objectCache!;
}