GeigerUrl constructor

GeigerUrl(
  1. String? protocol,
  2. String pluginId,
  3. String path
)

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);
}