isNegative property

bool get isNegative

Returns true if the number is negative (less than 0).

Implementation

bool get isNegative => this < 0;