cropPainter property

  1. @override
CropCornerPainter? cropPainter
override

Implementation

@override
CropCornerPainter? get cropPainter {
  return showWidgets
      ? CropCornerPainter(
          offset: translate,
          cropRect: cropRect,
          viewRect: _viewRect,
          scaleFactor: userScaleFactor,
          rotationScaleFactor: _rotationScaleFactor,
          interactionOpacity: _interactionOpacityProgress,
          screenSize: Size(
            editorBodySize.width,
            editorBodySize.height,
          ),
          fadeInOpacity: _painterOpacity,
          cornerThickness:
              imageEditorTheme.cropRotateEditor.cropCornerThickness,
          cornerLength: imageEditorTheme.cropRotateEditor.cropCornerLength,
          imageEditorTheme: imageEditorTheme,
          drawCircle: cropRotateEditorConfigs.roundCropper,
        )
      : null;
}