NormalArgOperationWithBeforeCalc constructor Null safety

NormalArgOperationWithBeforeCalc(
  1. {StackLift? stackLift,
  2. required Arg arg,
  3. required StackLift beforeCalculate(
    1. Resting
    ),
  4. required String name,
  5. int maxOneByteOpcodes = 9999}
)

Implementation

NormalArgOperationWithBeforeCalc(
    {StackLift? stackLift,
    required Arg arg,
    required StackLift Function(Resting) beforeCalculate,
    required String name,
    int maxOneByteOpcodes = 9999})
    : _beforeCalculate = beforeCalculate,
      super(
          stackLift: stackLift ?? StackLift.enable,
          arg: arg,
          name: name,
          maxOneByteOpcodes: maxOneByteOpcodes);