ReleasePackerWindowsSubsystemCommand.from constructor

ReleasePackerWindowsSubsystemCommand.from(
  1. Object command
)

Implementation

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