withinOffset method

bool withinOffset(
  1. List<List<Offset>> offsetList,
  2. Offset offset
)

Implementation

bool withinOffset(List<List<Offset>> offsetList, Offset offset) {
  bool within = false;
  for (var offsets in offsetList) {
    if (isPointOnLineSegment(offset, offsets.first, offsets.last)) {
      within = true;
      break;
    }
  }
  return within;
}