setLens method

Future<void> setLens(
  1. UCameraLens lens
)

Switches the active physical lens of a logical multi-camera device.

Implementation

Future<void> setLens(UCameraLens lens) async {
  if (!value.capabilities.lensSwitching) return;
  await _set("setLens", <String, Object?>{"lens": lens.name});
}