copyWith method

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

Implementation

Vec2 copyWith({double? x, double? y}) => Vec2(x ?? this.x, y ?? this.y);