window property Null safety
Implementation
int get window => _window;
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();
}