Kref constructor

Kref(
  1. String uri, {
  2. bool validate = true,
})

Creates a new Kref from the given URI string.

Optionally validates the URI format if validate is true (default).

Implementation

Kref(this.uri, {bool validate = true}) {
  if (validate) {
    validateKref(uri);
  }
}