copyWith method

Implementation

ImageComparisonState copyWith({
  List<ImageComparisonData>? history,
  ImageComparisonData? current,
}) {
  return ImageComparisonState(
    history: history ?? this.history,
    current: current ?? this.current,
  );
}