isNegative property

bool? isNegative

Whether this number is negative.

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;