isUrl property

bool get isUrl

Returns true if string is a valid url

Implementation

bool get isUrl => this != null && _urlRegex.hasMatch(this!);