WebUri constructor

WebUri(
  1. String source, {
  2. bool forceToStringRawValue = false,
})

Initialize a WebUri using a raw string value. In this case, uriValue.toString() and rawValue could not have the same value.

Implementation

WebUri(String source, {this.forceToStringRawValue = false}) {
  _rawValue = source;
  try {
    _uri = Uri.parse(this._rawValue);
    _isValidUri = true;
  } catch (e, stacktrace) {
    print(e);
    print(stacktrace);
  }
}