copyWith method
Returns a copy with selected fields replaced.
Implementation
AccessibilityConfig copyWith({
String? clearActionLabel,
String? dismissActionLabel,
String? playVideoLabel,
String? previousSlideLabel,
String? nextSlideLabel,
String? correctAnswerSemanticValue,
String? incorrectAnswerSemanticValue,
double? minTouchTargetSize,
bool? addStatusIconsBesideColor,
bool? respectReduceMotion,
}) {
return AccessibilityConfig(
clearActionLabel: clearActionLabel ?? this.clearActionLabel,
dismissActionLabel: dismissActionLabel ?? this.dismissActionLabel,
playVideoLabel: playVideoLabel ?? this.playVideoLabel,
previousSlideLabel: previousSlideLabel ?? this.previousSlideLabel,
nextSlideLabel: nextSlideLabel ?? this.nextSlideLabel,
correctAnswerSemanticValue:
correctAnswerSemanticValue ?? this.correctAnswerSemanticValue,
incorrectAnswerSemanticValue:
incorrectAnswerSemanticValue ?? this.incorrectAnswerSemanticValue,
minTouchTargetSize: minTouchTargetSize ?? this.minTouchTargetSize,
addStatusIconsBesideColor:
addStatusIconsBesideColor ?? this.addStatusIconsBesideColor,
respectReduceMotion: respectReduceMotion ?? this.respectReduceMotion,
);
}