copyWith method

PointY copyWith({
  1. double? y,
  2. String? label,
})

Implementation

PointY copyWith({
  double? y,
  String? label,
}) {
  return PointY(
    y: y ?? this.y,
    label: label ?? this.label,
  );
}