stop method

void stop()

Ends the countdown early (e.g. once the awaited action completes).

Implementation

void stop() => _timer?.cancel();