ReleasePackerCommandWithArgs constructor

ReleasePackerCommandWithArgs(
  1. String command, [
  2. List<String>? args
])

Implementation

ReleasePackerCommandWithArgs(String command, [List<String>? args])
  : command = command.trim(),
    args = args?.toList() ?? <String>[] {
  // NOTE: checks the trimmed field, not the parameter:
  if (this.command.isEmpty) {
    throw ArgumentError("Empty command!");
  }
}