ReleasePackerDartCommand.from constructor

ReleasePackerDartCommand.from(
  1. Object command
)

Implementation

factory ReleasePackerDartCommand.from(Object command) {
  if (command is String) {
    var list = ReleasePackerCommand.parseInlineCommand(command);
    return ReleasePackerDartCommand.fromList(list);
  } else if (command is List) {
    return ReleasePackerDartCommand.fromList(command);
  } else {
    throw ArgumentError("Unknown command type: $command");
  }
}