registerChild method Null safety

  1. @Deprecated('Use addCommand() instead')
void registerChild(
  1. GroupMixin child
)
@Deprecated('Use addCommand() instead')

Add a child to this group.

If any of its name or aliases confict with already registered commands, a CommandRegistrationError is thrown.

If child already has a parent, an CommandRegistrationError is thrown.

Implementation

@Deprecated('Use addCommand() instead')
void registerChild(GroupMixin child) => addCommand(child);