createInstruction method
Creates instructions.
Implementation
@override
List<Instruction> createInstruction(TurtleState turtle, Map argv) {
final copy = Map.of(argv);
return condition(copy)
? List<Instruction>.of(commands
.map((command) => command.createInstruction(turtle, copy))
.expand((x) => x))
: [];
}