NormalOperation.intOnly constructor Null safety

NormalOperation.intOnly(
  1. {void pressed(
    1. ActiveState
    )?,
  2. StackLift? stackLift,
  3. required void intCalc(
    1. Model<ProgramOperation>
    ),
  4. required String name,
  5. bool endsDigitEntry = true}
)

Implementation

NormalOperation.intOnly(
    {void Function(ActiveState)? pressed,
    StackLift? stackLift,
    required void Function(Model) this.intCalc,
    required String name,
    this.endsDigitEntry = true})
    : _pressed = pressed,
      _stackLift = stackLift ?? StackLift.enable,
      floatCalc = null,
      complexCalc = null,
      maxOneByteOpcodes = 9999,
      super(name: name);