copyWith method

LineTouchResponse copyWith({
  1. List<TouchLineBarSpot>? lineBarSpots,
})

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

Implementation

LineTouchResponse copyWith({
  List<TouchLineBarSpot>? lineBarSpots,
}) {
  return LineTouchResponse(
    lineBarSpots ?? this.lineBarSpots,
  );
}