copyWith method

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

Implementation

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