NodeShapePainter constructor

const NodeShapePainter({
  1. required NodeShape shape,
  2. required Color backgroundColor,
  3. required Color borderColor,
  4. required double borderWidth,
  5. EdgeInsets inset = EdgeInsets.zero,
  6. List<BoxShadow>? shadows,
  7. required Size size,
})

Creates a node shape painter.

Parameters:

  • shape - The shape to render
  • backgroundColor - The fill color for the shape
  • borderColor - The color of the shape's outline
  • borderWidth - The width of the border stroke
  • inset - Optional inset to shrink the shape (for port space)
  • shadows - Optional list of shadows to render behind the shape

Implementation

const NodeShapePainter({
  required this.shape,
  required this.backgroundColor,
  required this.borderColor,
  required this.borderWidth,
  this.inset = EdgeInsets.zero,
  this.shadows,
  required this.size,
});