copyWith method

Vector2 copyWith({
  1. double? x,
  2. double? y,
})

Implementation

Vector2 copyWith({double? x, double? y}) {
  return Vector2(x ?? this.x, y ?? this.y);
}