handleShow method Null safety

  1. @override
void handleShow(
  1. IntegerDisplayMode mode
)
override

Implementation

@override
void handleShow(IntegerDisplayMode mode) {
  if (model.isFloatMode) {
    return;
  }
  int lastWindow = 0;
  int show() {
    lastWindow = model.display.window;
    if (model.displayMode != mode) {
      model.display.window = 0;
    }
    model.display.currentShowingX = mode.format(model.x, model);
    model.display.update(neverReformat: true);
    return lastWindow;
  }

  if (!controller.delayForShow(show)) {
    changeState(ShowState(this, window: lastWindow));
  }
}