GscanKit constructor
const
GscanKit({
- Key? key,
- BoxFit fit = BoxFit.cover,
- MobileScannerController? controller,
- bool validator()?,
- void onDetect()?,
- void onDetectError()?,
- Widget errorBuilder()?,
- bool useAppLifecycleState = true,
- bool setPortraitOrientation = true,
- bool extendBodyBehindAppBar = true,
- PreferredSizeWidget? appBar(
- BuildContext context,
- MobileScannerController controller
- Widget? bottomSheetBuilder(
- BuildContext context,
- MobileScannerController controller
- List<
Widget> ? floatingOption, - Widget placeholderBuilder()?,
- Rect? scanWindow,
- double scanWindowUpdateThreshold = 0.0,
- GscanOverlayConfig gscanOverlayConfig = const GscanOverlayConfig(),
- Widget customOverlayBuilder()?,
- void onInitstate()?,
- void onDispose()?,
Implementation
const GscanKit({
super.key,
this.fit = BoxFit.cover,
this.controller,
this.validator,
this.onDetect,
this.onDetectError,
this.errorBuilder,
this.useAppLifecycleState = true,
this.setPortraitOrientation = true,
this.extendBodyBehindAppBar = true,
this.appBar,
this.bottomSheetBuilder,
this.floatingOption,
this.placeholderBuilder,
this.scanWindow,
this.scanWindowUpdateThreshold = 0.0,
this.gscanOverlayConfig = const GscanOverlayConfig(),
this.customOverlayBuilder,
this.onInitstate,
this.onDispose,
});