containsRectangle method Null safety

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

Tests whether this entirely contains another.

Implementation

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