parse static method

Uri parse(
  1. String value, [
  2. bool? strict
])

Create an URI from a string, e.g. http://www.example.com/some/path, file:///usr/home, or scheme:with/path.

Note that for a while uris without a scheme were accepted. That is not correct as all uris should have a scheme. To avoid breakage of existing code the optional strict-argument has been added. We strongly advise to use it, e.g. Uri.parse('my:uri', true)

Implementation

static _i3.Uri parse(
  _i2.String value, [
  _i2.bool? strict,
]) =>
    _i5.callMethod(
      _declaredUri,
      'parse',
      [
        value,
        strict ?? _i6.undefined,
      ],
    );