isHttpUrl method

bool isHttpUrl()

Checks if string is a http/https url.

Implementation

bool isHttpUrl() {
  if (this.startsWith("https://")) return true;
  if (this.startsWith("http://")) return true;
  return false;
}