CameraController class Null safety

A camera controller.

Constructors

CameraController(CameraType facing)
Create a CameraController. [...]
factory

Properties

args ValueNotifier<CameraArgs?>
Arguments for CameraView.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
torchState ValueNotifier<FlashState>
Torch state of the camera.
read-only

Methods

dispose() → void
Release the resources of the camera.
hasBackCamera() Future<bool>
Get status has Back Camera in Device
hasFrontCamera() Future<bool>
Get status has Front Camera in Device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setFlash(FlashState state) Future<void>
Switch the torch's state.
startAsync() Future<void>
Start the camera asynchronously.
switchCameraLens(CameraType type) Future<void>
Switch the camera type front or back
takePicture() Future<File>
Take Picture, return File
toString() String
A string representation of this object. [...]
inherited

Operators

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