isUrl 

Returns true if the given data is in the correct URL format. If withProtocol is true, it is automatically appended to the URL when the protocol does not exist. If strict is true, URLs without commas (.) return false.
Parameters
| Name | Type | Required | Default |
|---|---|---|---|
url | string | ● | – |
withProtocol![]() named | boolean | – | false |
strict![]() named | boolean | – | false |

named parameters are passed as named parameters in Dart and keyword arguments in Python.
Returns
boolean
Examples
javascript
isUrl('google.com'); // Returns false
isUrl('google.com', true); // Returns true
isUrl('https://google.com'); // Returns truedart
isUrl('google.com'); // Returns false
isUrl('google.com', withProtocol: true); // Returns true
isUrl('https://google.com'); // Returns truepython
isUrl('google.com') # Returns False
isUrl('google.com', True) # Returns True
isUrl('https://google.com') # Returns True