init method Null safety
- int registerBase,
- {required OpInitFunction f,
- required ProgramOperation? shift,
- required bool argDot,
- required ProgramOperation? arg,
- required bool userMode}
override
Implementation
@override
void init(int registerBase,
{required OpInitFunction f,
required ProgramOperation? shift,
required bool argDot,
required ProgramOperation? arg,
required bool userMode}) {
if (arg != null) {
// Move arg over to shift, e.g. for STO MATRIX A
assert(shift == null);
shift = arg;
arg = null;
}
assert(!argDot);
final nextKey = keys.iterator;
_next = List.generate(keys.length, (i) {
nextKey.moveNext();
final Arg a = generator(i);
a.init(registerBase,
f: f,
shift: shift,
argDot: argDot,
arg: nextKey.current,
userMode: userMode);
return a;
});
}