GscanKit constructor

const GscanKit({
  1. Key? key,
  2. BoxFit fit = BoxFit.cover,
  3. MobileScannerController? controller,
  4. bool validator(
    1. BarcodeCapture
    )?,
  5. void onDetect(
    1. BarcodeCapture
    )?,
  6. void onDetectError(
    1. Object,
    2. StackTrace
    )?,
  7. Widget errorBuilder(
    1. BuildContext,
    2. MobileScannerException
    )?,
  8. bool useAppLifecycleState = true,
  9. bool setPortraitOrientation = true,
  10. bool extendBodyBehindAppBar = true,
  11. PreferredSizeWidget? appBar(
    1. BuildContext context,
    2. MobileScannerController controller
    )?,
  12. Widget? bottomSheetBuilder(
    1. BuildContext context,
    2. MobileScannerController controller
    )?,
  13. List<Widget>? floatingOption,
  14. Widget placeholderBuilder(
    1. BuildContext
    )?,
  15. Rect? scanWindow,
  16. double scanWindowUpdateThreshold = 0.0,
  17. GscanOverlayConfig gscanOverlayConfig = const GscanOverlayConfig(),
  18. Widget customOverlayBuilder(
    1. BuildContext,
    2. BoxConstraints,
    3. MobileScannerController,
    4. bool?,
    )?,
  19. void onInitstate()?,
  20. 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,
});