isNonZero method

Future<bool> isNonZero()

Checks if the counter value is greater than zero.

Returns true if the current counter value is greater than zero, otherwise returns false.

Implementation

Future<bool> isNonZero() async => (await peek()) > 0;