copyWith method

TenunDiagnosticFallbackOptions copyWith({
  1. String? title,
  2. bool clearTitle = false,
  3. String? message,
  4. bool clearMessage = false,
  5. String? detailMessage,
  6. bool clearDetailMessage = false,
  7. List<Widget>? footerChildren,
  8. bool? showDoctorSummary,
  9. bool? showValidationDetails,
  10. bool? showErrorDetails,
  11. bool? showQuickFixes,
  12. int? maxQuickFixes,
})

Implementation

TenunDiagnosticFallbackOptions copyWith({
  String? title,
  bool clearTitle = false,
  String? message,
  bool clearMessage = false,
  String? detailMessage,
  bool clearDetailMessage = false,
  List<Widget>? footerChildren,
  bool? showDoctorSummary,
  bool? showValidationDetails,
  bool? showErrorDetails,
  bool? showQuickFixes,
  int? maxQuickFixes,
}) {
  return TenunDiagnosticFallbackOptions(
    title: clearTitle ? null : title ?? this.title,
    message: clearMessage ? null : message ?? this.message,
    detailMessage: clearDetailMessage
        ? null
        : detailMessage ?? this.detailMessage,
    footerChildren: footerChildren ?? this.footerChildren,
    showDoctorSummary: showDoctorSummary ?? this.showDoctorSummary,
    showValidationDetails:
        showValidationDetails ?? this.showValidationDetails,
    showErrorDetails: showErrorDetails ?? this.showErrorDetails,
    showQuickFixes: showQuickFixes ?? this.showQuickFixes,
    maxQuickFixes: maxQuickFixes ?? this.maxQuickFixes,
  );
}