isUrl static method

bool isUrl(
  1. String value
)

验证URL

Implementation

static bool isUrl(String value) {
  return RegExp(r"^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+").hasMatch(value);
}