copyWith method
Implementation
Vector2Rect copyWith({
Vector2? position,
Vector2? size,
}) {
return Vector2Rect(
position ?? this.position,
size ?? this.size,
);
}
Vector2Rect copyWith({
Vector2? position,
Vector2? size,
}) {
return Vector2Rect(
position ?? this.position,
size ?? this.size,
);
}