abs function

num abs(
  1. num x
)

Returns the absolute value of the given value x.

Implementation

num abs(num x) => x.abs();