copyWith method
TenunDiagnosticFallbackOptions
copyWith(
{ - String? title,
- bool clearTitle = false,
- String? message,
- bool clearMessage = false,
- String? detailMessage,
- bool clearDetailMessage = false,
- bool? showDoctorSummary,
- bool? showValidationDetails,
- bool? showErrorDetails,
- bool? showQuickFixes,
- 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,
);
}