copyWith method

LocalizationOptions copyWith({
  1. String? languageCode,
  2. String? notificationReportModeTitle,
  3. String? notificationReportModeContent,
  4. String? dialogReportModeTitle,
  5. String? dialogReportModeDescription,
  6. String? dialogReportModeAccept,
  7. String? dialogReportModeCancel,
  8. String? pageReportModeTitle,
  9. String? pageReportModeDescription,
  10. String? pageReportModeAccept,
  11. String? pageReportModeCancel,
  12. String? toastHandlerDescription,
  13. 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,
}) {
  return 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,
  );
}