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}
)
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;
}