init static method
Future<bool?>
init(
- SensorConfig sensorConfig,
- bool enableImageStream,
- bool enablePhysicalButton, {
- CaptureMode captureMode = CaptureMode.photo,
- required ExifPreferences exifPreferences,
Implementation
static Future<bool?> init(
SensorConfig sensorConfig,
bool enableImageStream,
bool enablePhysicalButton, {
CaptureMode captureMode = CaptureMode.photo,
required ExifPreferences exifPreferences,
}) async {
return CameraInterface()
.setupCamera(
sensorConfig.sensor.name.toUpperCase(),
sensorConfig.aspectRatio.name.toUpperCase(),
sensorConfig.zoom,
sensorConfig.mirrorFrontCamera,
enablePhysicalButton,
sensorConfig.flashMode.name.toUpperCase(),
captureMode.name.toUpperCase(),
enableImageStream,
exifPreferences,
)
.then((value) => true);
}