BiometryScannerWidget class
A widget that records a video of the user's face while displaying a phrase. Once the user starts talking (simulated by auto-start after 1 second), it displays the words of the phrase one by one. When all words are shown, the recording stops and the captured video is returned.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BiometryScannerWidget
Constructors
- BiometryScannerWidget.new({Key? key, required String phrase, required dynamic onCapture(File videoFile), CameraController? testController})
-
Creates a new BiometryScannerWidget instance.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCapture → dynamic Function(File videoFile)
-
Called when the video recording completes.
final
- phrase → String
-
The phrase to be spoken by the user.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- testController → CameraController?
-
The test controller to use for testing.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → BiometryScannerWidgetState -
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