isUriSupported method

  1. @override
bool isUriSupported(
  1. String uriString
)
override

Check Uri is supported or not

Implementation

@override
bool isUriSupported(String uriString) {
  try {
    Uri uri = Uri.parse(uriString);
    File.fromUri(uri);

    return true;
  } catch (_) {}
  return false;
}