PubPassthroughCommand constructor

PubPassthroughCommand({
  1. required String commandName,
  2. required String commandDescription,
  3. List<String> commandAliases = const [],
})

Implementation

PubPassthroughCommand({
  required this.commandName,
  required this.commandDescription,
  this.commandAliases = const [],
}) {
  if (!_pubPassthroughCommandNames.contains(commandName)) {
    throw ArgumentError.value(
      commandName,
      'commandName',
      'Must be a supported dart pub passthrough command',
    );
  }
}