isUrl static method

bool isUrl(
  1. String? url
)

验证URL

Implementation

static bool isUrl(String? url) {
  if (url?.isEmpty ?? true) return false;
  return url!.isUrl;
}