WhiteboardPainter constructor

WhiteboardPainter({
  1. required List<WhiteboardShape> shapes,
  2. WhiteboardShape? currentShape,
  3. required Offset panOffset,
  4. required double scale,
  5. required double maxWidth,
  6. required double maxHeight,
  7. bool useImageBackground = false,
  8. Image? backgroundImage,
  9. WhiteboardShape? selectedShape,
  10. Offset? eraserCursorPosition,
  11. double eraserThickness = 10.0,
  12. bool transparentBackground = false,
})

Implementation

WhiteboardPainter({
  required this.shapes,
  this.currentShape,
  required this.panOffset,
  required this.scale,
  required this.maxWidth,
  required this.maxHeight,
  this.useImageBackground = false,
  this.backgroundImage,
  this.selectedShape,
  this.eraserCursorPosition,
  this.eraserThickness = 10.0,
  this.transparentBackground = false,
});