abs method
Returns the absolute value of this integer.
For any integer x
, the result is the same as x < 0 ? -x : x
.
Implementation
int? abs() => value?.abs();
Returns the absolute value of this integer.
For any integer x
, the result is the same as x < 0 ? -x : x
.
int? abs() => value?.abs();