isNegative property

bool get isNegative

Returns true if this number is a negative number.

Example: -12.isNegative -> true.

Implementation

bool get isNegative => this < 0;