このプロパティは、数値が偶数の場合にブール値trueを返します。
num.isEven
void main() { int posNum = 10; print(posNum.isEven); }
次の output が生成されます-
true