RunningController constructor Null safety

RunningController(
  1. RealController real,
  2. {bool digitEntryState = false}
)

Implementation

RunningController(this.real, {bool digitEntryState = false}) {
  if (digitEntryState) {
    state = DigitEntry(this);
  } else {
    state = Resting(this);
  }
}