PortStyle constructor

const PortStyle({
  1. PortShape shape = PortShape.circle,
  2. double width = 10,
  3. double height = 10,
  4. DiagramColor fill = const DiagramColor(0xFFFFFFFF),
  5. DiagramColor stroke = const DiagramColor(0xFF111111),
  6. double strokeWidth = 1.5,
  7. DiagramColor? connectedFill,
  8. double connectedInset = 2.5,
})

Implementation

const PortStyle({
  this.shape = PortShape.circle,
  this.width = 10,
  this.height = 10,
  this.fill = const DiagramColor(0xFFFFFFFF),
  this.stroke = const DiagramColor(0xFF111111),
  this.strokeWidth = 1.5,
  this.connectedFill,
  this.connectedInset = 2.5,
});