MrzScannerConfiguration class
This class describes machine readable zone rtu-ui component configuration
Constructors
- MrzScannerConfiguration({CameraModule? cameraModule, Color? cameraOverlayColor, String? cancelButtonTitle, bool? cancelButtonHidden, String? enableCameraButtonTitle, String? enableCameraExplanationText, Color? finderLineColor, double? finderLineWidth, String? finderTextHint, Color? finderTextHintColor, AspectRatio? finderAspectRatio, bool? flashButtonHidden, String? flashButtonTitle, bool? flashEnabled, OrientationLockMode? orientationLockMode, bool? successBeepEnabled, Color? topBarBackgroundColor, Color? topBarButtonsActiveColor, Color? topBarButtonsInactiveColor, bool? useButtonsAllCaps, bool? replaceCancelButtonWithIcon, CameraPreviewMode? cameraPreviewMode, bool? touchToFocusEnabled})
Properties
- cameraModule ↔ CameraModule?
-
Preferred camera module (Default: BACK).
getter/setter pairinherited
- cameraOverlayColor ↔ Color?
-
Background color outside of the finder window.
getter/setter pairinherited
- cameraPreviewMode ↔ CameraPreviewMode?
-
Preview mode of the camera. FILL_IN or FIT_IN. Default is FILL_IN. Android only.
getter/setter pairinherited
- cancelButtonHidden ↔ bool?
-
Whether to hide the cancel button. iOS only.
getter/setter pairinherited
- cancelButtonTitle ↔ String?
-
Title of the cancel button.
getter/setter pairinherited
- enableCameraButtonTitle ↔ String?
-
Title of the button that opens the screen where the user can allow the app to use the camera.
getter/setter pairinherited
- enableCameraExplanationText ↔ String?
-
Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera.
getter/setter pairinherited
- finderAspectRatio ↔ AspectRatio?
-
Aspect ratio of the finder frame (width to height), which is used to build the actual finder frame. Default is 7, which is good for standard machine readable zones.
getter/setter pairinherited
- finderLineColor ↔ Color?
-
Foreground color of the detection overlay.
getter/setter pairinherited
- finderLineWidth ↔ double?
-
Width of the finder frame border. Default is 2.
getter/setter pairinherited
- finderTextHint ↔ String?
-
String being displayed as a description.
getter/setter pairinherited
- finderTextHintColor ↔ Color?
-
Foreground color of the description label.
getter/setter pairinherited
- flashButtonHidden ↔ bool?
-
Whether to hide the flash toggle button. iOS only.
getter/setter pairinherited
- flashButtonTitle ↔ String?
-
Title of the flash toggle button. iOS only.
getter/setter pairinherited
- flashEnabled ↔ bool?
-
Whether the flash should be initially enabled. The default value is FALSE.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- orientationLockMode ↔ OrientationLockMode?
-
Lock mode for the UI's orientation.
getter/setter pairinherited
- replaceCancelButtonWithIcon ↔ bool?
-
Whether to replace the cancel button in the top bar with a back arrow icon. Default is FALSE. Android only.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screen ↔ String?
-
The configuration object should be applied for this screen
getter/setter pair
- successBeepEnabled ↔ bool?
-
Whether to play a beep sound after a successful detection. Default value is TRUE.
getter/setter pairinherited
- topBarBackgroundColor ↔ Color?
-
Background color of the top toolbar.
getter/setter pairinherited
- topBarButtonsActiveColor ↔ Color?
-
Color of all active toggle buttons in the toolbar.
getter/setter pairinherited
- topBarButtonsInactiveColor ↔ Color?
-
Color of all inactive toggle buttons in the toolbar.
getter/setter pairinherited
- touchToFocusEnabled ↔ bool?
-
Whether touch-to-focus is enabled on the camera preview. Enabled by default. Android only.
getter/setter pairinherited
- useButtonsAllCaps ↔ bool?
-
Whether buttons should use all-capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.
getter/setter pairinherited
- version ↔ String?
-
Version of the configuration object.
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited