localization method Null safety

Future<bool> localization(
  1. {String? newMessageHint,
  2. String? messageStatusDelivered,
  3. String? messageStatusRead,
  4. String? messageStatusSendingErrorMessage,
  5. String? messageStatusSendingErrorTryAgain,
  6. String? readAndWriteStoragePermissionAlertTitle,
  7. String? readAndWriteStoragePermissionAlertMessage,
  8. String? readAndWriteStoragePermissionAlertPositiveButton,
  9. String? readAndWriteStoragePermissionAlertNegativeButton,
  10. String? attachmentPlaceholderName,
  11. String? attachmentFileMaxSizeExceededErrorMessage,
  12. String? couldNotOpenFileErrorMessage,
  13. String? chatConnectionErrorMessage,
  14. String? chatConnectionRestoredMessage,
  15. String? chatHistoryDownloadErrorMessage,
  16. String? couldNotOpenWebBrowserErrorMessage,
  17. String? unexpectedErrorMessage,
  18. String? fileDownloadErrorMessage}
)

Implementation

static Future<bool> localization({
  String? newMessageHint,
  String? messageStatusDelivered,
  String? messageStatusRead,
  String? messageStatusSendingErrorMessage,
  String? messageStatusSendingErrorTryAgain,
  String? readAndWriteStoragePermissionAlertTitle,
  String? readAndWriteStoragePermissionAlertMessage,
  String? readAndWriteStoragePermissionAlertPositiveButton,
  String? readAndWriteStoragePermissionAlertNegativeButton,
  String? attachmentPlaceholderName,
  String? attachmentFileMaxSizeExceededErrorMessage,
  String? couldNotOpenFileErrorMessage,
  String? chatConnectionErrorMessage,
  String? chatConnectionRestoredMessage,
  String? chatHistoryDownloadErrorMessage,
  String? couldNotOpenWebBrowserErrorMessage,
  String? unexpectedErrorMessage,
  String? fileDownloadErrorMessage,
}) async {
  final bool result = await _channel.invokeMethod(
    _methodLocalization,
    <String, dynamic>{
      "newMessageHint": newMessageHint,
      "messageStatusDelivered": messageStatusDelivered,
      "messageStatusRead": messageStatusRead,
      "messageStatusSendingErrorMessage": messageStatusSendingErrorMessage,
      "messageStatusSendingErrorTryAgain": messageStatusSendingErrorTryAgain,
      "readAndWriteStoragePermissionAlertTitle":
          readAndWriteStoragePermissionAlertTitle,
      "readAndWriteStoragePermissionAlertMessage":
          readAndWriteStoragePermissionAlertMessage,
      "readAndWriteStoragePermissionAlertPositiveButton":
          readAndWriteStoragePermissionAlertPositiveButton,
      "readAndWriteStoragePermissionAlertNegativeButton":
          readAndWriteStoragePermissionAlertNegativeButton,
      "attachmentPlaceholderName": attachmentPlaceholderName,
      "attachmentFileMaxSizeExceededErrorMessage":
          attachmentFileMaxSizeExceededErrorMessage,
      "couldNotOpenFileErrorMessage": couldNotOpenFileErrorMessage,
      "chatConnectionErrorMessage": chatConnectionErrorMessage,
      "chatConnectionRestoredMessage": chatConnectionRestoredMessage,
      "chatHistoryDownloadErrorMessage": chatHistoryDownloadErrorMessage,
      "couldNotOpenWebBrowserErrorMessage":
          couldNotOpenWebBrowserErrorMessage,
      "unexpectedErrorMessage": unexpectedErrorMessage,
      "fileDownloadErrorMessage": fileDownloadErrorMessage,
    },
  );
  return result;
}