copyWith method
LocalizationOptions
copyWith({
- String? languageCode,
- String? notificationReportModeTitle,
- String? notificationReportModeContent,
- String? dialogReportModeTitle,
- String? dialogReportModeDescription,
- String? dialogReportModeAccept,
- String? dialogReportModeCancel,
- String? pageReportModeTitle,
- String? pageReportModeDescription,
- String? pageReportModeAccept,
- String? pageReportModeCancel,
- String? toastHandlerDescription,
- String? snackbarHandlerDescription,
Helper method used to copy values of current LocalizationOptions with new values passed in method.
Implementation
LocalizationOptions copyWith({
String? languageCode,
String? notificationReportModeTitle,
String? notificationReportModeContent,
String? dialogReportModeTitle,
String? dialogReportModeDescription,
String? dialogReportModeAccept,
String? dialogReportModeCancel,
String? pageReportModeTitle,
String? pageReportModeDescription,
String? pageReportModeAccept,
String? pageReportModeCancel,
String? toastHandlerDescription,
String? snackbarHandlerDescription,
}) =>
LocalizationOptions(
languageCode ?? this.languageCode,
notificationReportModeTitle:
notificationReportModeTitle ?? this.notificationReportModeTitle,
notificationReportModeContent:
notificationReportModeContent ?? this.notificationReportModeContent,
dialogReportModeTitle:
dialogReportModeTitle ?? this.dialogReportModeTitle,
dialogReportModeDescription:
dialogReportModeDescription ?? this.dialogReportModeDescription,
dialogReportModeAccept:
dialogReportModeAccept ?? this.dialogReportModeAccept,
dialogReportModeCancel:
dialogReportModeCancel ?? this.dialogReportModeCancel,
pageReportModeTitle: pageReportModeTitle ?? this.pageReportModeTitle,
pageReportModeDescription:
pageReportModeDescription ?? this.pageReportModeDescription,
pageReportModeAccept: pageReportModeAccept ?? this.pageReportModeAccept,
pageReportModeCancel: pageReportModeCancel ?? this.pageReportModeCancel,
toastHandlerDescription:
toastHandlerDescription ?? this.toastHandlerDescription,
snackbarHandlerDescription:
snackbarHandlerDescription ?? this.snackbarHandlerDescription,
);