setExposureCompensation method

Future<void> setExposureCompensation(
  1. double offset
)

Sets camera exposure compensation offset.

Implementation

Future<void> setExposureCompensation(double offset) async {
  if (_cameraController != null && _cameraController!.value.isInitialized) {
    try {
      await _cameraController!.setExposureOffset(offset);
    } catch (_) {}
  }
  _safeNotifyListeners();
}