LocalizationOptions constructor Null safety

LocalizationOptions(
  1. String languageCode,
  2. {String notificationReportModeTitle = "Application error occurred",
  3. String notificationReportModeContent = "Click here to send error report to support team.",
  4. String dialogReportModeTitle = "Crash",
  5. String dialogReportModeDescription = "Unexpected error occurred in application. Error report is ready to send to support team. Please click Accept to send error report or Cancel to dismiss report.",
  6. String dialogReportModeAccept = "Accept",
  7. String dialogReportModeCancel = "Cancel",
  8. String pageReportModeTitle = "Crash",
  9. String pageReportModeDescription = "Unexpected error occurred in application. Error report is ready to send to support team. Please click Accept to send error report or Cancel to dismiss report.",
  10. String pageReportModeAccept = "Accept",
  11. String pageReportModeCancel = "Cancel",
  12. String toastHandlerDescription = "Error occurred:",
  13. String snackbarHandlerDescription = "Error occurred:"}
)

Implementation

LocalizationOptions(
  this.languageCode, {
  this.notificationReportModeTitle = "Application error occurred",
  this.notificationReportModeContent =
      "Click here to send error report to support team.",
  this.dialogReportModeTitle = "Crash",
  this.dialogReportModeDescription =
      "Unexpected error occurred in application. Error report is ready to send to support team. Please click Accept to send error report or Cancel to dismiss report.",
  this.dialogReportModeAccept = "Accept",
  this.dialogReportModeCancel = "Cancel",
  this.pageReportModeTitle = "Crash",
  this.pageReportModeDescription =
      "Unexpected error occurred in application. Error report is ready to send to support team. Please click Accept to send error report or Cancel to dismiss report.",
  this.pageReportModeAccept = "Accept",
  this.pageReportModeCancel = "Cancel",
  this.toastHandlerDescription = "Error occurred:",
  this.snackbarHandlerDescription = "Error occurred:",
});