fixMirroredCharacters method Null safety

void fixMirroredCharacters()

L4. A character is depicted by a mirrored glyph if and only if (a) the resolved directionality of that character is R, and (b) the Bidi_Mirrored property value of that character is true.

Implementation

void fixMirroredCharacters() {
  for (int i = 0; i < _textData.length; ++i) {
    if ((_textData[i]._el & 1) == 1) {
      _textData[i]._char = _getBidiCharacterMirror(_textData[i]._char);
    }
  }
}