isExternalStorageRemovable property

Future<bool> isExternalStorageRemovable

Returns whether the primary shared/external storage media is physically removable.

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

Implementation

static Future<bool> get isExternalStorageRemovable async {
  assert(_platform.isAndroid);
  return await _channel.invokeMethod('isExternalStorageRemovable') as bool;
}