In this guide, we will discuss Number isOdd Property. This property returns a Boolean value true if the number is an odd number.
Syntax
num.isOdd
Example
void main() { int posNum = 10; print(posNum.isOdd); }
It will produce the following output −
false
Next Topic : Click Here
Pingback: Number isEven Property | Adglob Infosystem Pvt Ltd
Pingback: Dart Programming - Numbers | Adglob Infosystem Pvt Ltd