contains method
Returns true if other
is a VectorBase or a Rect and is contained
within this rectangle. For this operation the rectangle is treated as a
group of columns and rows.
See containsVec and containsRect.
Implementation
bool contains(Object? other) {
if (other is VectorBase) return containsVec(other);
if (other is Rect) return containsRect(other);
throw ArgumentError.value(
other.runtimeType.toString(), 'other', 'Must be a Rect or VectorBase');
}