Returns true if value is a valid URL.
value
static bool isUrl(String value) { final uri = Uri.tryParse(value); return uri != null && uri.hasScheme && uri.hasAuthority; }