SensorConfig class Null safety
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
read-only
-
aspectRatio$
↔ Stream<
CameraAspectRatios> -
read / write
- brightness → double
-
Returns the current brightness without stream
read-only
-
brightness$
↔ Stream<
double> ? -
set brightness correction manually range
0,1
(optional)read / write - captureDeviceId → String?
-
final
- flashMode → FlashMode
-
Returns the current flash mode without stream
read-only
-
flashMode$
↔ Stream<
FlashMode> -
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
luminosityLevelStream
→ Stream<
SensorData> ? -
Only available on Android
read-only
- mirrorFrontCamera → bool
-
Return the current mirrorFrontCamera without stream
read-only
-
mirrorFrontCamera$
↔ Stream<
bool> -
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- sensor → Sensors
-
back
orfront
camerafinal -
sensorType$
↔ Stream<
SensorType> -
read / write
- zoom → double
-
Returns the current zoom without stream
read-only
-
zoom$
↔ Stream<
double> -
Zoom from native side. Must be between 0.0 and 1.0
read / write
Methods
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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