BaseViewFinderConfiguration constructor

BaseViewFinderConfiguration({
  1. FinderStyle? style,
  2. ScanbotColor? overlayColor,
  3. AspectRatio? aspectRatio,
  4. EdgeInsets? minimumInsets,
  5. double preferredHeight = -1.0,
})

Implementation

BaseViewFinderConfiguration({
  FinderStyle? style,
  ScanbotColor? overlayColor,
  AspectRatio? aspectRatio,
  EdgeInsets? minimumInsets,
  this.preferredHeight = -1.0,
})  : style = style ??
          FinderCorneredStyle(
              strokeColor: ScanbotColor("?sbColorSurface"),
              strokeWidth: 2.0,
              cornerRadius: 10.0),
      overlayColor = overlayColor ?? ScanbotColor("?sbColorSurfaceLow"),
      aspectRatio = aspectRatio ?? AspectRatio(width: 1.0, height: 1.0),
      minimumInsets = minimumInsets ??
          EdgeInsets(top: 16.0, left: 16.0, bottom: 16.0, right: 16.0);