NormalOperation.differentFloatAndInt constructor Null safety

NormalOperation.differentFloatAndInt(
  1. {void pressed(
    1. ActiveState
    )?,
  2. StackLift? stackLift,
  3. required void intCalc(
    1. Model<ProgramOperation>
    ),
  4. required void floatCalc(
    1. Model<ProgramOperation>
    ),
  5. void complexCalc(
    1. Model<ProgramOperation>
    )?,
  6. required String name,
  7. bool endsDigitEntry = true,
  8. int maxOneByteOpcodes = 9999}
)

Implementation

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