I'm attempting to convert a piece of PHP code to dart and I came across a few things I've simply never used before, one of which is a single pipe |. Im not sure what the exact dart equivalent is, if there even is one.
The piece of code in PHP I'm attempting to convert is:
$cc1 = (chr(ord($c1) / 64) | "\xc0");
What I've got so far converted into dart is:
var cc1 = (String.fromCharCode(c1.codeUnitAt(0) / 64) | "\xc0");
However, the single pipe | is giving me a dart error The operator '|' isn't defined for the type 'String'., but as far as I can tell, the php chr should be giving a string as its output, so it brings up the question of if single pipe is actually doing the same thing in dart as it does in PHP?