NormalOperation constructor Null safety

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

Implementation

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