isURL method

bool isURL()

Returns whether this string is a URL or not.

Returns true for a URL.

この文字列がURLかどうかを返します。

URLの場合trueを返します。

Implementation

bool isURL() {
  return RegExp(r'https?://[a-zA-Z0-9\-%_/=&?.]+').hasMatch(this);
}