如果数字为偶数,则此属性返回true。
isEven - 语法
num.isEven
isEven - 示例
void main() { int posNum=10; print(posNum.isEven); }
它将产生以下输出-
true
参考链接
https://www.learnfk.com/dart-programming/dart-programming-iseven-property.html
如果数字为偶数,则此属性返回true。
num.isEven
void main() { int posNum=10; print(posNum.isEven); }
它将产生以下输出-
true
https://www.learnfk.com/dart-programming/dart-programming-iseven-property.html
暂无评论
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-20
2024-05-18
2024-05-18
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17
2024-05-17