asUriOr method

Uri asUriOr(
  1. Uri defaultValue
)

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

If value doesn't exist, this returns defaultValue.

Implementation

Uri asUriOr(Uri defaultValue) => asUri;