canOpenFile method
Checks whether the file at uri is accessible for reading.
Platforms: Android · iOS · macOS · Windows · Linux Web: throws UnsupportedError
Notes:
- Android supports
content://andfile://URIs. - iOS supports
file://andph://(Photos assets) URIs.
Returns false if the file has been deleted or is no longer accessible.
Implementation
Future<bool> canOpenFile(Uri uri) {
throw UnimplementedError('canOpenFile is not implemented on this platform');
}