ScanbotCroppingWidget constructor

ScanbotCroppingWidget({
  1. Key? key,
  2. required ImageRef documentImage,
  3. required dynamic onViewReady(
    1. CroppingController
    ),
  4. Color anchorPointsColor = Colors.red,
  5. Color edgeColor = Colors.white,
  6. Color edgeColorOnLine = Colors.green,
  7. double edgeLineWidth = 5,
  8. dynamic onHeavyOperationProcessing(
    1. bool
    )?,
  9. dynamic onError(
    1. SBException error
    )?,
  10. Insets? borderInsets,
  11. int widgetFadeAnimationDurationiOS = 350,
})

Implementation

ScanbotCroppingWidget(
    {Key? key,
    required this.documentImage,
    required this.onViewReady,
    this.anchorPointsColor = Colors.red,
    this.edgeColor = Colors.white,
    this.edgeColorOnLine = Colors.green,
    this.edgeLineWidth = 5,
    this.onHeavyOperationProcessing,
    this.onError,
    this.borderInsets,
    this.widgetFadeAnimationDurationiOS = 350})
    : super(key: key);