isWebUrl static method

bool isWebUrl(
  1. String value
)

url

Implementation

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