refreshUsage method

Future<void> refreshUsage()

Refreshes the reported storage usage from the underlying object store.

Implementation

Future<void> refreshUsage() async {
  _descriptor = _descriptor.copyWith(
    usedBytes: await store.storage.usedBytes(),
    lastSeenAt: store.clock.now(),
  );
}