SelectionRectanglePainter constructor

SelectionRectanglePainter({
  1. required Rect selectionRectangle,
  2. required NodeFlowTheme theme,
})

Implementation

SelectionRectanglePainter({
  required this.selectionRectangle,
  required this.theme,
}) : _fillPaint = Paint()
       ..color = theme.selectionColor
       ..style = PaintingStyle.fill,
     _borderPaint = Paint()
       ..color = theme.selectionBorderColor
       ..strokeWidth = theme.selectionBorderWidth
       ..style = PaintingStyle.stroke;