SensorConfig class

Constructors

SensorConfig({required Sensors sensor, FlashMode flash = FlashMode.none, bool mirrorFrontCamera = false, SensorType type = SensorType.wideAngle, String? captureDeviceId, CameraAspectRatios aspectRatio = CameraAspectRatios.ratio_4_3, double currentZoom = 0.0})

Properties

aspectRatio CameraAspectRatios
Returns the current camera aspect ratio without stream
no setter
aspectRatio$ Stream<CameraAspectRatios>
getter/setter pair
brightness double
Returns the current brightness without stream
no setter
brightness$ Stream<double>?
set brightness correction manually range 0,1 (optional)
getter/setter pair
captureDeviceId String?
final
flashMode FlashMode
Returns the current flash mode without stream
no setter
flashMode$ Stream<FlashMode>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mirrorFrontCamera bool
Return the current mirrorFrontCamera without stream
no setter
mirrorFrontCamera$ Stream<bool>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensor Sensors
back or front camera
final
sensorType$ Stream<SensorType>
getter/setter pair
zoom double
Returns the current zoom without stream
no setter
zoom$ Stream<double>
Zoom from native side. Must be between 0.0 and 1.0
getter/setter pair

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAspectRatio(CameraAspectRatios ratio) Future<void>
Change the current CameraAspectRatios one of CameraAspectRatios.ratio_16_9 CameraAspectRatios.ratio_4_3 CameraAspectRatios.ratio_1_1
setBrightness(double brightness) → dynamic
set brightness correction manually range 0,1 (optionnal)
setFlashMode(FlashMode flashMode) Future<void>
Set manually the FlashMode between FlashMode.none no flash FlashMode.on always flashing when taking photo FlashMode.auto let the camera decide if it should use flash or not FlashMode.always flash light stays open
setMirrorFrontCamera(bool mirrorFrontCamera) Future<void>
Set mirroring front camera (for selfie for ex.)
setZoom(double zoom) Future<void>
switchCameraFlash() → void
Switch the flash according to the previous state
switchCameraRatio() Future<void>
switch the camera preview / photo / video aspect ratio CameraAspectRatios.ratio_16_9 CameraAspectRatios.ratio_4_3 CameraAspectRatios.ratio_1_1
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited