isHttpUrl method
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;
}
Checks if string is a http/https url.
bool isHttpUrl() {
if (this.startsWith("https://")) return true;
if (this.startsWith("http://")) return true;
return false;
}