NormalOperationOrLetter.floatOnly constructor Null safety

NormalOperationOrLetter.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. required LetterLabel letter}
)

Implementation

NormalOperationOrLetter.floatOnly(
    {void Function(ActiveState)? pressed,
    StackLift? stackLift,
    required void Function(Model) floatCalc,
    void Function(Model)? complexCalc,
    required String name,
    required LetterLabel letter})
    : numericValue = letter.numericValue,
      programListingArgName = letter.name,
      super.floatOnly(
          pressed: pressed,
          stackLift: stackLift,
          floatCalc: floatCalc,
          complexCalc: complexCalc,
          name: name);