asUri property

Uri asUri

Asserts that value exists, is a string, and can be parsed as a Uri and returns it.

asUriOr may be used to provide a default value instead of rejecting the request if value doesn't exist.

Implementation

Uri get asUri => _getParsed('URI', Uri.parse);