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