copyWith method

AccessibilityConfig copyWith({
  1. String? clearActionLabel,
  2. String? dismissActionLabel,
  3. String? playVideoLabel,
  4. String? previousSlideLabel,
  5. String? nextSlideLabel,
  6. String? correctAnswerSemanticValue,
  7. String? incorrectAnswerSemanticValue,
  8. double? minTouchTargetSize,
  9. bool? addStatusIconsBesideColor,
  10. bool? respectReduceMotion,
})

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,
  );
}