Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart is operator

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");
  }
    
}
 
PREVIOUS NEXT
Tagged: #dart #operator
ADD COMMENT
Topic
Name
2+4 =