getDevices method

Future<List<Device>> getDevices(
  1. Filter? filter
)

Retrieves all devices with synced sessions.

Implementation

Future<List<Device>> getDevices(Filter? filter) async {
  var $res = await promiseToFuture<JSArray>(
      $js.chrome.sessions.getDevices(filter?.toJS));
  return $res.toDart.cast<$js.Device>().map((e) => Device.fromJS(e)).toList();
}