absolute property

int absolute

Gets the absolute value of the integer.

The absolute value is defined as the magnitude of a number regardless of its sign. For example, the absolute values of both -5 and 5 are 5.

Returns the absolute value of the integer.

Implementation

int get absolute => toInt().abs();