HostRunnerPlatform.build constructor
HostRunnerPlatform.build(
- 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');
}