copyWith method

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

A copy of this value with the given members replaced.

Implementation

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