hydrate method

Future<void> hydrate()

Implementation

Future<void> hydrate() async {
  if (isHydrated) {
    logger.log('Hydrate canceled. Already hydrated');
    return;
  }

  final hydratedStore =
      await logger.measure('Hydrate', () => config.hydrate());

  if (hydratedStore != null) {
    _store = hydratedStore;
  }

  isHydrated = true;
}