all property

List<Device> all

Gets List of all available playback Device.

Implementation

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