setBrightness static method

Future<void> setBrightness(
  1. double brightness
)

set brightness manually with range 0,1

Implementation

static Future<void> setBrightness(double brightness) {
  if (brightness < 0 || brightness > 1) {
    throw "Value must be between [0,1]";
  }
  return CameraInterface().setCorrection(brightness);
}