all property

List<Device> get all

Gets List of all available playback Device.

Implementation

static List<Device> get all {
  List<Device> devices = <Device>[];
  final _devices = DevicesFFI.all(devices);
  for (int i = 0; i < _devices.ref.size; i++) {
    final _device = _devices.ref.devices.elementAt(i);
    devices.add(Device(
        _device.ref.id.toDartString(), _device.ref.name.toDartString()));
  }
  return devices;
}