byCode static method

ControlFunctionsC1? byCode(
  1. String code
)

Implementation

static ControlFunctionsC1? byCode(String code) {
  if (code.length == 2 &&
      code.codeUnitAt(0) == ControlFunctionsC0.ESC.index) {
    final index = code.codeUnitAt(1) - 0x40;

    return index >= 0 && index < values.length ? values[index] : null;
  }

  return null;
}