secondsRemaining method

Future<int> secondsRemaining()

Returns the remaining cooldown time in seconds.

Returns 0 if the cooldown has expired or was never activated.

Implementation

Future<int> secondsRemaining() async => (await timeRemaining()).inSeconds;