copyWith method

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

Copies current FlSpot to a new FlSpot, and replaces provided values.

Implementation

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