localization method

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

Implementation

static Future<bool> localization({
  String newMessageHint,
  String messageStatusDelivered,
  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,
      "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;
}