toUri static method

Uri toUri(
  1. String url
)

Converts a string to a Uri.

Example: 'https://example.com' -> Uri object

Implementation

static Uri toUri(String url) => Uri.parse(url);