isEven property
bool
get
isEven
Returns true
if the number is even, false
otherwise.
Implementation
bool get isEven => this % 2 == 0;
Returns true
if the number is even, false
otherwise.
bool get isEven => this % 2 == 0;