You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the public method String get path does not allow to return null:
String get path {
if (kIsWeb) {
/// https://github.com/miguelpruivo/flutter_file_picker/issues/751
throw '''
On web `path` is always `null`,
You should access `bytes` property instead,
Read more about it [here](https://github.com/miguelpruivo/flutter_file_picker/wiki/FAQ)
''';
}
return _path!;
}
where
return _path!;
will throw an error
Platform
Android
iOS
Web
Desktop (Go)
Platform OS version
This is platform-independent error
Details to reproduce the issue
Instantiate a PlatformFile without providing a path
Access the path
The text was updated successfully, but these errors were encountered:
Describe the bug
The PlatformFile object can be instantiated with a null path:
But the public method
String get path
does not allow to return null:where
will throw an error
Platform
Platform OS version
This is platform-independent error
Details to reproduce the issue
PlatformFile
without providing a pathThe text was updated successfully, but these errors were encountered: