isNegative property

bool get isNegative

A number is negative if it's smaller than zero, or if it is the double -0.0. This precludes a NaN value like double.nan from being negative.

Implementation

bool get isNegative => _value.isNegative;