void main() { dynamic variable = "hello"; if(variable is String) { print("is a String"); } else { print("is not String"); } if(variable is int) { print("is a int"); } else { print("is not int"); } }