isUrl static method

bool isUrl(
  1. String value
)

Returns true if value is a valid URL.

Implementation

static bool isUrl(String value) {
  final uri = Uri.tryParse(value);
  return uri != null && uri.hasScheme && uri.hasAuthority;
}