nextAllowedTime method

Future<DateTime> nextAllowedTime()

Returns the DateTime when a token will be available. Returns DateTime.now() if already available.

Implementation

Future<DateTime> nextAllowedTime() async {
  final remaining = await timeUntilNextToken();
  return DateTime.now().add(remaining);
}