setDescription method
Switch lenses without tearing down the controller. Blocked while a recording is in flight — call stopVideoRecording first.
Implementation
Future<void> setDescription(XCameraDescription description) async {
final handle = _requireHandle('setDescription');
final r = await XCameraBackend.instance.setDescription(
handle,
description.id,
);
value = value.copyWith(
description: description,
previewSize: r.previewSize,
previewRotationQuarterTurns: r.previewRotationQuarterTurns,
);
}