Dart Bitwise & Shift Operators

Jinali GhoghariJinali Ghoghari
1 min read

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:

0
Subscribe to my newsletter

Read articles from Jinali Ghoghari directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Jinali Ghoghari
Jinali Ghoghari