isUrl method

bool isUrl()

判断字符串是否是Url

Implementation

bool isUrl() =>
    RegExp(r'^((ht|f)tps?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?$').hasMatch(this);