isOdd function Null safety

bool isOdd(
  1. int a
)

Check if a is an Odd number.

Implementation

bool isOdd(int a) => a % 2 != 0;