isURL property

bool isURL

判断是不是一个网络地址

Implementation

bool get isURL {
  Uri? uri = Uri.tryParse(url);
  return uri != null && uri.hasScheme && uri.hasAuthority;
}