setDeviceId method

Future<void> setDeviceId(
  1. String deviceId
)

Implementation

Future<void> setDeviceId(String deviceId) async {
  if (currentOptions.deviceId == deviceId) {
    return;
  }
  currentOptions = currentOptions.copyWith(deviceId: deviceId);
  if (!muted) {
    await restartTrack();
  }
}