findLocalPath static method
Returns the path to the external storage directory.
If no external storage directory is available, returns an empty string.
Example:
final path = await FileUtils.findLocalPath();
Implementation
static Future<String> findLocalPath() async {
if (kIsWeb) {
return '';
}
try {
final dir = await getExternalStorageDirectory();
return dir?.path ?? '';
} catch (_) {
return '';
}
}