copyWith method

  1. @override
ScatterSpot copyWith({
  1. double? x,
  2. double? y,
  3. bool? show,
  4. FlDotPainter? dotPainter,
})
override

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

Implementation

@override
ScatterSpot copyWith({
  double? x,
  double? y,
  bool? show,
  FlDotPainter? dotPainter,
}) {
  return ScatterSpot(
    x ?? this.x,
    y ?? this.y,
    show: show ?? this.show,
    dotPainter: dotPainter ?? this.dotPainter,
  );
}