isOffScreen method

bool isOffScreen()

Implementation

bool isOffScreen() {
  var checks = [
    getLeft().x > FRAME_X_RADIUS,
    getRight().x < -FRAME_X_RADIUS,
    getBottom().y > FRAME_Y_RADIUS,
    getTop().y < -FRAME_Y_RADIUS
  ];

  return checks.any((e) => e);
}