GeigerUrl constructor
Create a GeigerUrl with the provided pluginId
, path
, and optionally protocol
.
Throws MalformedUrlException if the resulting URL is not fulfilling the minimum requirements
Implementation
GeigerUrl(String? protocol, String pluginId, String path) {
protocol ??= geigerProtocol;
if (protocol == '') {
throw MalformedUrlException('protocol cannot be empty');
}
_protocol = protocol;
init(pluginId, path);
}