Dart: Boolean

bool var_name = true;  
OR  
bool var_name = false 

Example

void main() { 
   bool test; 
   test = 12 > 5; 
   print(test); 
}

=> output

true 

Leave a Reply

Your email address will not be published. Required fields are marked *