createHitTestPath method

  1. @override
Path createHitTestPath(
  1. Path originalPath,
  2. double tolerance
)
override

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

Implementation

@override
Path createHitTestPath(Path originalPath, double tolerance) {
  // For smooth step, we need slightly different hit testing due to rounded corners
  return _createSmoothStepHitTestPath(originalPath, tolerance);
}