hasValidateHttpFormat function
Check site is a valid HTTP or HTTPS format
Implementation
bool hasValidateHttpFormat(String site) {
try {
Uri uri = Uri.parse(site);
return _httpScheme.hasMatch(uri.scheme);
} on FormatException {
return false;
}
}