externalStorageDirectory property

Future<Directory> externalStorageDirectory

Return the primary shared/external storage directory.

This directory may not currently be accessible if it has been mounted by the user on their computer, has been removed from the device, or some other problem has happened. You can determine its current state with externalStorageState.

See: https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()

Implementation

static Future<Directory> get externalStorageDirectory async {
  assert(_platform.isAndroid);
  return Directory(
      await _channel.invokeMethod('getExternalStorageDirectory') as String);
}