Dart Bitwise Operators
Dart Bitwise Operators
Bitwise operators are used to perform bitwise operations on the operands, which work on individual bits of the operands. The following table describes the symbols, operation names, and descriptions of the Dart Bitwise operators:
Operator Symbol | Operation Name | Description |
& | Bitwise AND Operator | The bitwise AND operator performs bitwise AND operation on two operands. |
! | Bitwise OR Operator | The bitwise OR operator performs bitwise OR operation on two operands. |
^ | Bitwise XOR operator | The bitwise XOR operator performs bitwise exclusive OR (XOR) operation on two operands. |
~ | Bitwise NOT operator | The bitwise NOT operator performs bitwise NOT operation on a single operand. It flips all bits of the operand. |
<< | Bitwise Left Shift operator | The left shift operator left shifts the bits of the first operand to the left by the number of positions specified by the second operand, inserting 0 bits from the right. |
>> | Bitwise Right Shift operator | The right shift operator right shifts the bits of the first operand to the right by the number of positions specified by the second operand, inserting 0 bits from the left. |
—
More information on Dart Programming language: