isURL function
Checks if the string is a valid URL.
Returns true if the string can be parsed as a valid Uri, otherwise returns false.
Example:
isURL('https://google.com'); // true
isURL('invalid-url'); // false
Implementation
bool isURL(String str) => _isURL(str);