parent property
inherited
The parent of this child.
Once a parent is added to a group, that group is considered to be this child's parent and this child cannot be added to any more groups. Attempting to do so will result in a CommandsError.
Implementation
@override
CommandGroup<CommandContext>? get parent => _parent;
inherited
Set the parent of this child. Should not be used unless you are implementing your own command group.
Implementation
@override
set parent(CommandGroup<CommandContext>? parent) {
if (_parent != null) {
throw CommandRegistrationError('Cannot register command "$name" again');
}
_parent = parent;
}