FaceCamera class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FaceCamera
Constructors
- FaceCamera({required FRCController controller, bool showControls = true, bool showCaptureControl = false, String message = 'No Camera Detected', TextStyle messageStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.w500), bool autoDisableCaptureControl = false, Widget? descriptionWidget, String emptyFaceMessage = 'Face not Detected', String positionMessage = 'Please position your face in the camera frame', String centerMessage = 'Center your face in the camera', void captureControl(File? image, Uint8List? imageCropped)?, Key? key})
-
const
Properties
- autoDisableCaptureControl → bool
-
Set true to automatically disable capture control widget when no face is detected.
final
- captureControl → void Function(File? image, Uint8List? imageCropped)?
-
final
- centerMessage → String
-
Use this pass a message center face into frame.
final
- controller → FRCController
-
The controller for the FaceCamera widget.
final
- descriptionWidget → Widget?
-
Use this to build custom widgets for the description widget
final
- emptyFaceMessage → String
-
Use this pass a message above face not detected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- message → String
-
Use this pass a message above the camera.
final
- messageStyle → TextStyle
-
Style applied to the message widget.
final
- positionMessage → String
-
Use this pass a message above description position.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCaptureControl → bool
-
Set false to hide capture control icon.
final
- showControls → bool
-
Set false to hide all controls.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FaceCamera> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited