isNegative property
bool
get
isNegative
Returns true if the number is negative (less than 0).
Example:
-5.isNegative; // true
5.isNegative; // false
Implementation
bool get isNegative => this < 0;
Returns true if the number is negative (less than 0).
Example:
-5.isNegative; // true
5.isNegative; // false
bool get isNegative => this < 0;