hitTestControlHandles method

bool hitTestControlHandles({
  1. required Offset position,
  2. double? epsilon,
})

Implementation

bool hitTestControlHandles({required Offset position, double? epsilon}) {
  if (controlHandles.isEmpty) {
    return false;
  }
  for (final control in controlHandles.entries) {
    final point = control.value.position;
    if ((point - position).distance <=
        (epsilon ?? (kDefaultHitTestEpsilon))) {
      return true;
    }
  }
  return false;
}