Copies current FlSpot to a new FlSpot, and replaces provided values.
FlSpot copyWith({ double? x, double? y, }) { return FlSpot( x ?? this.x, y ?? this.y, ); }