absValue property
double
get
absValue
Returns the absolute value of the number.
Example:
(-5.5).absValue; // 5.5
Implementation
double get absValue => this < 0 ? -this : this;
Returns the absolute value of the number.
Example:
(-5.5).absValue; // 5.5
double get absValue => this < 0 ? -this : this;