handleShow method Null safety

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

Implementation

@override
void handleShow(IntegerDisplayMode mode) {
  if (model.isFloatMode) {
    return;
  }
  if (model.displayMode != mode) {
    model.display.window = 0;
    model.display.current = mode.format(model.x, model);
    model.display.update();
  }
  changeState(ShowState(this));
}