clashesWith method

  1. @override
bool clashesWith(
  1. RenderInfo<Renderinstruction> other
)
override

Implementation

@override
bool clashesWith(RenderInfo other) {
  // if either of the elements is always drawn, the elements do not clash
  if (MapDisplay.ALWAYS == renderInstruction.display || MapDisplay.ALWAYS == other.renderInstruction.display) {
    return false;
  }
  return getBoundaryAbsolute().intersects(other.getBoundaryAbsolute());
}