setExposureMode method Null safety

Future<void> setExposureMode(
  1. ExposureMode mode
)

Sets the exposure mode for taking pictures.

Implementation

Future<void> setExposureMode(ExposureMode mode) async {
  try {
    await CameraPlatform.instance.setExposureMode(_cameraId, mode);
    value = value.copyWith(exposureMode: mode);
  } on PlatformException catch (e) {
    throw CameraException(e.code, e.message);
  }
}