handleClearPrefix method Null safety

  1. @override
void handleClearPrefix()
override

Implementation

@override
void handleClearPrefix() {
  if (model.isFloatMode) {
    if (model.x.asMatrix == null) {
      model.display.current = model.x.floatPrefix;
      model.display.update();
      changeState(ShowState(this));
    }
  } else if (model.settings.windowEnabled) {
    model.display.displayX(flash: false, disableWindow: true);
    changeState(ShowState(this, disableWindow: true));
  }
}