isValidUrl method
Implementation
bool isValidUrl() {
final urlRegex = RegExp(
r'^(https?:\/\/)?([\w\d\.-]+)\.([a-z\.]{2,6})(\/[\w\d\.-]*)*\/?$');
return urlRegex.hasMatch(this);
}
bool isValidUrl() {
final urlRegex = RegExp(
r'^(https?:\/\/)?([\w\d\.-]+)\.([a-z\.]{2,6})(\/[\w\d\.-]*)*\/?$');
return urlRegex.hasMatch(this);
}