takeOverFrom method Null safety

void takeOverFrom(
  1. DigitEntry? other
)

Implementation

void takeOverFrom(final DigitEntry? other) {
  if (other != null) {
    _entered = other._entered;
    _sign = other._sign;
    _exponent = other._exponent;
    _negativeExponent = other._negativeExponent;
    _tryNewValue(_entered, _sign, _exponent, _negativeExponent);
  } else {
    changeState(Resting(controller));
  }
}