isUriSupported function

bool isUriSupported(
  1. String uriString
)

Check uri is supported or not

Don't pass uri parameter using Uri object via uri.toString(). Because uri.toString() changes the string to lowercase which causes this package to misbehave

If you are using uni_links package for deep linking purpose. Pass the uri string using getInitialLink() or linkStream

Supported uri scheme same as supported by File.fromUri(uri) with content uri (Android Only)

returns

  • true if uri supported
  • false if uri not supported

Implementation

bool isUriSupported(String uriString) {
  return UriToFilePlatform.instance.isUriSupported(uriString);
}