abs property
num
get
abs
Returns the absolute value of the number.
Implementation
num get abs => this < 0 ? -this : this;
Returns the absolute value of the number.
num get abs => this < 0 ? -this : this;