hitsFillHandle method

bool hitsFillHandle(
  1. Offset position, {
  2. double slop = 6,
})

Whether a local position is on the fill handle, with a margin: a seven-pixel square is a fine thing to see and a poor thing to aim at.

Implementation

bool hitsFillHandle(Offset position, {double slop = 6}) =>
    fillHandleRect?.inflate(slop).contains(position) ?? false;