Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart operators

// first individual use

void main() {
  int x = 5;
  int y = 2;
  int z = x + y; // collection operator
  int z = x - y; // extraction operator
  int z = x * y; // impact operator
  int z = x / y; // divide operator
  
}

// seconds if else operators

void main() {
   int x = 2;
   int y = 5;
   if(x == y) {} // equality operator
   if(x < y) {} // less than sign operator
   if(x > y) {} // greater operator
   if(x <= y) {} // less than sign or equality operator
   if(x >= y) {} // greater or equality operator
}

// I guess that's enough for now, good coding <3
 
PREVIOUS NEXT
Tagged: #dart #operators
ADD COMMENT
Topic
Name
8+3 =