CameraScannerWidget constructor
const
CameraScannerWidget({
- Key? key,
- required void onScan(),
- required Widget loadingHolder,
- required void onNoCamera(),
- double? aspectRatio,
- bool cardNumber = true,
- bool cardHolder = true,
- bool cardExpiryDate = true,
- Color? colorOverlay,
- ShapeBorder? shapeBorder,
- bool useLuhnValidation = true,
- bool debug = kDebugMode,
- Duration? durationOfNextFrame,
- ResolutionPreset? resolutionPreset,
Creates a CameraScannerWidget.
The onScan
, loadingHolder
, and onNoCamera
parameters are required.
Implementation
const CameraScannerWidget({
super.key,
required this.onScan,
required this.loadingHolder,
required this.onNoCamera,
this.aspectRatio,
this.cardNumber = true,
this.cardHolder = true,
this.cardExpiryDate = true,
this.colorOverlay,
this.shapeBorder,
this.useLuhnValidation = true,
this.debug = kDebugMode,
this.durationOfNextFrame,
this.resolutionPreset,
});