operator >> method

bool operator >>(
  1. dynamic other
)

Implementation

bool operator >>(dynamic other) {
  if (other is Vector2) {
    return x > other.x && y > other.y;
  } else if (other is double || other is int) {
    return x > other && y > other;
  }
  throw Exception(
      'Cannot compare vector2 to unknown type, only int, double and Vector2 are accepted');
}