Dart Bitwise & Shift Operators

Dart Bitwise & Shift Operators

Dart provides powerful tools for manipulating binary data at the bit level through bitwise and shift operators.

Bitwise Operators

Operator signOperator Name
&AND
^XOR
~Bitwise NOT

Shift Operators

Operator signOperator NameOperator Description
<<Left ShiftThe left shift operator (<<) shifts the bits of the left operand to the left by a specified number of positions
>>Right ShiftThe right shift operator (>>) shifts the bits to the right, filling vacant positions with zeros. For signed integers

Example: