connectionPainter property

ConnectionPainter get connectionPainter

Gets the connection painter used for rendering and hit-testing connections.

The connection painter must be initialized by calling setTheme first, which is typically done automatically by the editor widget.

Throws StateError if accessed before initialization.

Implementation

ConnectionPainter get connectionPainter {
  if (_connectionPainter == null) {
    throw StateError(
      'ConnectionPainter not initialized. Call setTheme or setCallbacksAndTheme first.',
    );
  }
  return _connectionPainter!;
}