SensorConfig class
Constructors
-
SensorConfig.multiple({required List<
Sensor> sensors, FlashMode flashMode = FlashMode.none, double zoom = 0.0, CameraAspectRatios aspectRatio = CameraAspectRatios.ratio_4_3}) - SensorConfig.single({Sensor? sensor, FlashMode flashMode = FlashMode.none, double zoom = 0.0, CameraAspectRatios aspectRatio = CameraAspectRatios.ratio_4_3})
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 - 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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sensors
→ List<
Sensor> -
back
orfront
camerafinal -
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
-
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