isValidURL property

bool get isValidURL

Is valid URL

Implementation

bool get isValidURL {
  return RegExp(r"^(?:http|https):\/\/[\w\-_]+(?:\.[\w\-_]+)+[\w\-.,@?^=%&:/~\\+#]*$")
      .hasMatch(this);
}