openUri method
Loads content from "file", "http", or "https" URI.
Implementation
Future<void> openUri(Uri uri) {
if (!uri.isAbsolute) {
uri = Uri.parse(window!.location.href).resolveUri(uri);
}
if (uri.scheme == 'file') {
return openFile(io.File.fromUri(uri));
}
if (uri.scheme == 'http' || uri.scheme == 'https') {
return openHttp(uri: uri);
}
throw ArgumentError.value(uri, 'uri');
}