FRCController class

The controller for the FRCController widget.

Inheritance

Constructors

FRCController({ImageResolution imageResolution = ImageResolution.medium, bool enableAudio = true, bool autoCapture = false, bool ignoreFacePositioning = false, CameraOrientation? orientation = CameraOrientation.portraitUp, required void onCapture(File? image, Uint8List? imageCropped), void onFaceDetected(Face? face)?, bool centerPosition = false})
Construct a new FRCController instance.

Properties

autoCapture bool
Set true to capture image on face detected.
final
centerPosition bool
Set true to center face in the camera frame. centerPosition is only applicable when autoCapture is true. and using FaceCameraCircle widget.
final
enableAudio bool
Set false to disable capture sound.
final
enableControls bool
Enables controls only when camera is initialized.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
ignoreFacePositioning bool
Set true to trigger onCapture even when the face is not well positioned
final
imageResolution ImageResolution
The desired resolution for the camera.
final
onCapture → void Function(File? image, Uint8List? imageCropped)
Callback invoked when camera captures image.
final
onFaceDetected → void Function(Face? face)?
Callback invoked when camera detects face.
final
orientation CameraOrientation?
Use this to lock camera orientation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value CameraState
The current value stored in this notifier.
getter/setter pairinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
captureControl() Future<(File?, Uint8List?)>
captureImage() → void
changeCameraLens() Future<void>
dispose() Future<void>
Dispose the controller.
override
initialize() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
removeRotation(File inputImage) → dynamic
setZoomLevel(double zoom) Future<void>
The supplied zoom value should be between 1.0 and the maximum supported
startImageStream() Future<void>
stopImageStream() Future<void>
takePicture() Future<XFile?>
toString() String
A string representation of this object.
inherited

Operators

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