asciiCodeUnit property

int? get asciiCodeUnit

Returns the printable ASCII code unit for this cell, if it has one.

Implementation

int? get asciiCodeUnit => switch (_contentKind) {
  _CellContentKind.space when _width == 1 => 0x20,
  _CellContentKind.singleScalar
      when _contentValue >= 0x20 && _contentValue < 0x7F =>
    _contentValue,
  _ => null,
};