isEven property

bool get isEven

Returns true if the number is even, false otherwise.

Implementation

bool get isEven => this % 2 == 0;