abs method

int abs(
  1. int x
)

Computes the absolute value of an integer x.

Implementation

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