WhiteboardPainter constructor
WhiteboardPainter({ - required List<WhiteboardShape> shapes,
- WhiteboardShape? currentShape,
- required Offset panOffset,
- required double scale,
- required double maxWidth,
- required double maxHeight,
- bool useImageBackground = false,
- Image? backgroundImage,
- WhiteboardShape? selectedShape,
- Offset? eraserCursorPosition,
- double eraserThickness = 10.0,
- 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,
});