createHitTestPath method
Creates an expanded path for hit testing The base implementation provides a simple stroke-based expansion
Implementation
@override
Path createHitTestPath(Path originalPath, double tolerance) {
// Use optimized hit testing with exact bend points when possible
final bounds = originalPath.getBounds();
if (bounds.width <= 0 && bounds.height <= 0) {
return Path();
}
// For step connections, we can use the exact bend points for precise hit testing
return _createStepHitTestPath(originalPath, tolerance);
}