isUrl property
bool
get
isUrl
Returns true if this is a valid http:// or https:// URL.
Implementation
bool get isUrl =>
RegExp(r'^https?://[^\s/$.?#].[^\s]*$', caseSensitive: false)
.hasMatch(this);