isNegative property
bool?
get
isNegative
True if the number is negative; otherwise, false.
Negative numbers are those less than zero, and the double -0.0
.
Implementation
bool? get isNegative => value?.isNegative;