pasteToX method Null safety

bool pasteToX(
  1. String clipboard
)

Implementation

bool pasteToX(String clipboard) {
  final v = model.tryParseValue(clipboard);
  if (v == null) {
    return false;
  }
  if (_stackLiftEnabled) {
    model.pushStack();
  }
  _stackLiftEnabled = true;
  model.x = v;
  model.display.displayX();
  state = Resting(this);
  return true;
}