void main() { int n = 2; print(n is int); }
它将产生以下output -
true
void main() { double n = 2.20; var num = n is! int; print(num); }