copyWith method
Copies current PieTouchResponse to a new PieTouchResponse, and replaces provided values.
Implementation
PieTouchResponse copyWith({
PieTouchedSection? touchedSection,
}) {
return PieTouchResponse(
touchedSection ?? this.touchedSection,
);
}