PortTheme constructor
const
PortTheme({})
Creates a port theme with the specified visual properties.
All parameters are required to ensure consistent theming across different port states.
Parameters:
size: The size of the port in logical pixels (width, height)color: Default color when the port is idleconnectedColor: Color when the port has active connectionshighlightColor: Color when port is highlighted during connection draghighlightBorderColor: Border color when port is highlightedborderColor: Color of the port's borderborderWidth: Width of the port's border in logical pixelslabelTextStyle: Text style for port labelslabelOffset: Distance from port center to label (default: 8.0)shape: Default marker shape for ports (default: capsuleHalf)
Note: Port label visibility is controlled by:
- Port.showLabel on each port instance
- The LOD (Level of Detail) system via
DetailVisibility.showPortLabels
Implementation
const PortTheme({
required this.size,
required this.color,
required this.connectedColor,
required this.highlightColor,
required this.highlightBorderColor,
required this.borderColor,
required this.borderWidth,
this.shape = MarkerShapes.capsuleHalf,
this.labelTextStyle,
this.labelOffset = 4.0,
});