isOdd property

bool get isOdd

检查是否为奇数

Implementation

bool get isOdd => this % 2 != 0;