NonProgrammableOperation constructor Null safety

NonProgrammableOperation(
  1. {required String name,
  2. required void pressed(
    1. LimitedState
    ),
  3. dynamic calc(
    1. Model<ProgramOperation> m
    )?,
  4. bool endsDigitEntry = false}
)

Implementation

NonProgrammableOperation(
    {required String name,
    required void Function(LimitedState) pressed,
    this.calc,
    bool endsDigitEntry = false})
    : super(pressed: pressed, name: name, endsDigitEntry: endsDigitEntry);