List of All Assignment Operators in Dart Flutter with Example

Assignment operators are used in flutter to assign right side operand value to left side operand. The basic assignment operator in flutter is =(Equal). Equal is assign right side value to left side operand without any modification. There are basically 12 Assignment operators available in Dart including Bitwise operators. So in this tutorial we would learn about List of All Assignment Operators in Dart Flutter with Example Tutorial.

Contents in this project List of All Assignment Operators in Dart Flutter with Example:

S.NO. Operator Sign Operator Name
1 = Normal assignment
2 += Addition assignment
3 -= Subtraction assignment
4 *= Multiplication assignment
5 /= Division assignment
6 %= Modulo assignment
7 ~/= Integer division assignment
8 >>= Bitwise shift right assignment
9 <<=  Bitwise shift left assignment
10 ^= Bitwise XOR assignment
11 &= Bitwise AND assignment
12 |= Bitwise OR assignment

Example:

Output:

List of All Assignment Operators in Dart Flutter with Example

Leave a Reply

Your email address will not be published.