intersects method Null safety

  1. @override
bool intersects(
  1. Rectangle<num> r
)

Returns true if this intersects other.

Implementation

@override
bool intersects(math.Rectangle<num> r) =>
    left < r.right && right > r.left && top < r.bottom && bottom > r.top;