Returns true
if uri
contains a valid uri.
Source
static bool isValid(String uri) { try { Uri.parse(uri); return true; } catch (e) { return false; } }
Returns true
if uri
contains a valid uri.
static bool isValid(String uri) { try { Uri.parse(uri); return true; } catch (e) { return false; } }