PrecisionArg constructor Null safety

PrecisionArg(
  1. {required void f(
    1. Model<ProgramOperation> m,
    2. int v
    )}
)

Implementation

PrecisionArg({required this.f})
    : super(synonyms: Arg.registerISynonyms, children: [
        DigitArg(max: 9, calc: (m, i) => f(m, i)),
        KeyArg(
            key: Arg.kI,
            child: ArgDone(
                (m) => f(m, _translate(m, m.memory.registers.index)))),
      ]);