isUrl property

bool get isUrl

Checks if string is URL

Implementation

bool get isUrl {
  return RegExp(r'^https?://').hasMatch(this);
}