BarcodeScannerConfiguration class

Annotations
  • @JsonSerializable(includeIfNull: false, explicitToJson: true)

Constructors

BarcodeScannerConfiguration({Color? topBarBackgroundColor, Color? topBarButtonsColor, Color? cameraOverlayColor, Color? finderLineColor, Color? finderTextHintColor, String? cancelButtonTitle, String? enableCameraButtonTitle, String? enableCameraExplanationText, String? finderTextHint, int? autoCancelTimeout, FinderAspectRatio? finderAspectRatio, int? finderLineWidth, bool? successBeepEnabled, bool? flashEnabled, CameraOrientationMode? orientationLockMode, List<BarcodeFormat>? barcodeFormats, bool? cancelButtonHidden, BarcodeImageGenerationType? barcodeImageGenerationType})
BarcodeScannerConfiguration.fromJson(Map<String, dynamic> json)
factory

Properties

autoCancelTimeout int?
cancel scanning and close view on timeout.
getter/setter pair
barcodeFormats List<BarcodeFormat>
Format of barcode which need to recognize
getter/setter pair
barcodeImageGenerationType BarcodeImageGenerationType
Param that handle whether we need to save image from camera preview or make a snapshot while snapping barcode image uri will be returned in BarcodeScanningResult.snappedImage property
getter/setter pair
cameraOverlayColor Color?
Background color outside of the finder window.
getter/setter pair
cancelButtonHidden bool?
getter/setter pair
cancelButtonTitle String?
Title of the cancel button.
getter/setter pair
enableCameraButtonTitle String?
Title of the button that opens the screen where the user can allow the usage of the camera by the app.
getter/setter pair
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 pair
finderAspectRatio FinderAspectRatio?
Aspect ratio of finder view.
getter/setter pair
finderLineColor Color?
Color of the finder window's outline.
getter/setter pair
finderLineWidth int?
Thickness of the finder window's outline.
getter/setter pair
finderTextHint String?
Text hint shown under the finder window.
getter/setter pair
finderTextHintColor Color?
Color of the text hint under the finder window.
getter/setter pair
flashEnabled bool?
Controls whether the flash should be initially enabled. The default value is FALSE.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
orientationLockMode CameraOrientationMode?
Orientation lock mode of the camera: PORTRAIT or LANDSCAPE. By default the camera orientation is not locked.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
successBeepEnabled bool?
Controls whether to play a beep sound after a successful detection. Default value is TRUE.
getter/setter pair
topBarBackgroundColor Color?
Background color of the top toolbar.
getter/setter pair
topBarButtonsColor Color?
Color of the titles of all buttons in the top toolbar.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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