walkCommands method Null safety
Iterate over all the commands in this group and any subgroups.
Implementation
Iterable<Command> walkCommands() sync* {
if (this is Command) {
yield this as Command;
}
for (final child in children) {
yield* child.walkCommands();
}
}