copyWith method

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

Implementation

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