createHitTestPath method

Path createHitTestPath(
  1. Path originalPath,
  2. double tolerance, {
  3. ConnectionPathParameters? pathParams,
})

Creates an expanded path for hit testing The base implementation provides a simple stroke-based expansion

pathParams - Optional parameters used to create the original path. Some connection styles can use these to create more optimized hit test paths.

Implementation

Path createHitTestPath(
  Path originalPath,
  double tolerance, {
  ConnectionPathParameters? pathParams,
}) {
  return _createSimpleStrokeHitTestPath(originalPath, tolerance);
}