getEndTime method

Future<DateTime?> getEndTime()

Determines and returns the DateTime when the current period will end.

Returns a DateTime indicating the end of the current period, or null if the last update time is not available.

Implementation

Future<DateTime?> getEndTime() async {
  final last = await lastUpdate.get();
  return last?.add(resetEvery);
}