copyWith method

PieTouchResponse copyWith({
  1. PieTouchedSection? touchedSection,
})

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

Implementation

PieTouchResponse copyWith({
  PieTouchedSection? touchedSection,
}) {
  return PieTouchResponse(
    touchedSection ?? this.touchedSection,
  );
}