Skip to main content

validateUrlExistence method

Future<bool?> validateUrlExistence (String url)

Implementation

Future\<bool?\> validateUrlExistence(String url) async \{
try \{
await http.get(Uri.parse(url));
return true;
\} on Exception catch (e) \{
debugPrint(e.toString());
return false;
\}
\}