isZero property

bool get isZero

Returns true if the duration is zero.

Example:

Duration().isZero; // true
Duration(seconds: 1).isZero; // false

Implementation

bool get isZero => inMicroseconds == 0;