findLocalPath static method

Future<String> findLocalPath()

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 {
  final String path = (await getExternalStorageDirectory())?.path ?? '';
  return path;
}