isZero property

bool get isZero

True when the represented decimal value is exactly zero.

Scale does not affect the result, so zero values with different scales all report true.

Implementation

bool get isZero => scaledValue == BigInt.zero;