gsb property Null safety

NormalArgOperation gsb
final

Implementation

static final NormalArgOperation gsb = RunProgramOperation(
    maxOneByteOpcodes:
        16, // The user's guide is wrong on p. 218, GSB .0-.9 are two-byte
    runner: () => GosubProgramRunner(),
    arg: LabelArg(
        maxDigit: 19,
        letters: _letterLabelsList,
        iFirst: true,
        f: (m, final int? label) {
          if (label == null) {
            throw CalculatorError(4);
          }
          m.memory.program.gosub(label);
        }),
    name: 'GSB');