window property Null safety

int window

Implementation

int get window => _window;
void window=(int v)

Implementation

set window(int v) {
  if (v == _window) {
    return;
  }
  if (v != 0 && model.isFloatMode) {
    assert(false);
    return;
  }
  final int max = ((_numDigits - 1) ~/ 8) * 8;
  if (v < 0 || v > max) {
    throw CalculatorError(1);
  }
  _window = v;
  update();
}