externalStorageState property

Future<String> externalStorageState

Returns the current state of the primary shared/external storage media.

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

Implementation

static Future<String> get externalStorageState async {
  assert(_platform.isAndroid);
  return await _channel.invokeMethod('getExternalStorageState')
      as String; // TODO: enum values
}