Dart编程实例 - 数字 isNegative 属性
void main() {
int posNum = 10;
int negNum = -10;
print(posNum.isNegative);
print(negNum.isNegative);
}
void main() {
int posNum = 10;
int negNum = -10;
print(posNum.isNegative);
print(negNum.isNegative);
}