displayMode property Null safety

DisplayMode displayMode

Implementation

DisplayMode get displayMode => _displayMode;
void displayMode=(DisplayMode v)

Implementation

set displayMode(DisplayMode v) {
  _displayMode.convertValuesTo(v, this);
  _displayMode = v;
  if (v.isFloatMode) {
    wordSize = 56; // "Converts" values which is n/a for FloatValue
    // Setting numBits already displays X
  } else {
    display.displayX();
  }
  _needsSave = true;
}