isNegative property

bool get isNegative

Returns true if the value is less than zero.

Implementation

bool get isNegative => (this ?? 0) < 0;