setExposureAndFocus method
Implementation
void setExposureAndFocus(
TapDownDetails details,
BoxConstraints constraints,
) async {
if (!_initialized) return;
final offset = Offset(
details.localPosition.dx / constraints.maxWidth,
details.localPosition.dy / constraints.maxHeight,
);
try {
await Future.wait([
_controller.setExposurePoint(offset),
_controller.setFocusPoint(offset),
]);
} on CameraException catch (e) {
_uiHandler.showExceptionSnackbar(e);
rethrow;
}
}