setExposureOffset method

Future<void> setExposureOffset(
  1. double offset
)

Implementation

Future<void> setExposureOffset(double offset) async {
  final UCameraRange range = value.capabilities.exposureOffset;
  if (range.isFixed) return;
  final double clamped = range.clamp(offset);
  await _set("setExposureOffset", <String, Object?>{"offset": clamped});
  _emit(value.copyWith(exposureOffset: clamped));
}