isZero property

bool get isZero

Returns true if the number is zero.

Example:

0.isZero; // true
5.isZero; // false

Implementation

bool get isZero => this == 0;