
In this guide, we will discuss Abs Method in Dart Programming Language. This property is used to return an integer representing the absolute value of a number.
Syntax
Number.abs()
Example
void main() { var a = -2; print(a.abs()); }
It will produce the following output −.
2
Next Topic : Click Here
Pingback: Number isOdd Property | Adglob Infosystem Pvt Ltd
Pingback: Dart Programming - Numbers | Adglob Infosystem Pvt Ltd