copyWith method

Position copyWith({
  1. int? x,
  2. int? y,
})

Implementation

Position copyWith({int? x, int? y}) => Position(x ?? this.x, y ?? this.y);