HostRunnerPlatform.build constructor

HostRunnerPlatform.build(
  1. Platform host
)

Implementation

factory HostRunnerPlatform.build(Platform host) {
  if (host.isWindows) {
    return WindowsHostRunnerPlatform(host);
  } else if (host.isLinux || host.isMacOS) {
    return UnixHostRunnerPlatform(host);
  }

  throw UnsupportedError('Unsupported operating system');
}