OCRKitView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- OCRKitView
Constructors
- OCRKitView.new({ScaleTypeMode scaleType = ScaleTypeMode.fill, required Function onTextRead, CameraFlashMode previewFlashMode = CameraFlashMode.auto, required OCRKitController ocrKitController, required Function onPermissionDenied, bool isTakePictureMode = false, bool isScanningText = true})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isScanningText → bool
-
if false, live mode doesn't process anything.
final
- isTakePictureMode → bool
-
While taking picture, if
isTakePictureMode
is true, the output is processedfinal - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- ocrKitController → OCRKitController
-
Controller for this widget
final
- onPermissionDenied → Function
-
After android and iOS user deny run time permission, this method is called.
final
- onTextRead → Function
-
In barcodeReader mode, while camera preview detect barcodes, This method is called.
final
- previewFlashMode → CameraFlashMode
-
This parameter accepts 3 values.
CameraFlashMode.auto
,CameraFlashMode.on
andCameraFlashMode.off
. For changing value after initial usechangeFlashMode
method in controller.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleType → ScaleTypeMode
-
There are 2 modes
ScaleTypeMode.fill
andScaleTypeMode.fit
for this parameter. If you want camera preview fill your widget area, usefill
mode. In this mode, camera preview may be croped for filling widget area. If you want camera preview to show entire lens preview, usefit
mode. In this mode, camera preview may be shows blank areas.final - viewState ↔ _OCRScannerViewState
-
getter/setter pair
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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