isNegative method

bool isNegative()

Returns true if the integer is less than zero.

Null values return false.

Implementation

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