SelectionPainter constructor

SelectionPainter({
  1. required NodeFlowTheme theme,
})

Implementation

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