isUrl property
bool
get
isUrl
Implementation
bool get isUrl {
if (isNullOrEmpty) return false;
final urlPattern = r'(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?';
return RegExp(urlPattern).hasMatch(this!);
}