ejectDevice method

Future<EjectDeviceResultCode> ejectDevice(
  1. String id
)

Ejects a removable storage device.

Implementation

Future<EjectDeviceResultCode> ejectDevice(String id) async {
  var $res = await promiseToFuture<$js.EjectDeviceResultCode>(
      $js.chrome.system.storage.ejectDevice(id));
  return EjectDeviceResultCode.fromJS($res);
}