abs property

num get abs

Returns the absolute value of the number.

Implementation

num get abs => this < 0 ? -this : this;