currentDigitEntryState property Null safety

DigitEntry? currentDigitEntryState

Implementation

DigitEntry? get currentDigitEntryState {
  ControllerState s = state;
  if (s is DigitEntry) {
    return s;
  } else {
    return null;
  }
}