isUrl function

bool isUrl(
  1. String url
)

Implementation

bool isUrl(String url) {
  return Uri.parse(url).host.isNotEmpty;
}