walkCommands method
inherited
Returns an iterable that recursively iterates over all the Command
s in this group.
This will return all the Command
s in this group, whether they be direct children or
children of children. If you want all the direct Command
children, consider using
children.whereType<ICommand>()
instead.
Implementation
@override
Iterable<ChatCommand> walkCommands() sync* {
if (this is ChatCommand) {
yield this as ChatCommand;
}
for (final child in children) {
yield* child.walkCommands();
}
}