NormalOperation.floatOnly constructor Null safety

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

Implementation

NormalOperation.floatOnly(
    {void Function(ActiveState)? pressed,
    StackLift? stackLift,
    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,
      intCalc = null,
      complexCalc = complexCalc ?? floatCalc,
      super(name: name);