return absolute value dart code example Example: dart Absolute value void main() { var a = -2; print(a.abs()); }