isNegative property - num class - dart:core library (original) (raw)
bool getisNegative
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;