hydrate method

Future<void> hydrate()

Implementation

Future<void> hydrate() async {
  DateTime now = DateTime.now();
  DateTime? lastFetchedTime = _lastFetchedTime;

  if (lastFetchedTime != null &&
      now.difference(lastFetchedTime).inSeconds <
          dedupingInterval.inSeconds) {
    return;
  }

  fetchData();
}