load method

Future<T?> load()

Retrieve the aggregate results of the collection from the server.

When a value is retrieved, the value is stored in value.

Once a value is retrieved, it is cached and will not be updated unless reload is executed.

コレクションの集計結果をサーバーから取得します。

値が取得されるとvalueに値が格納されます。

一度取得した値はキャッシュされ、一度値が取得されるとreloadを実行しない限り値は更新されません。

Implementation

Future<T?> load() async {
  if (_value != null) {
    return _value;
  }
  return _load();
}