colors method Null safety

Future<bool> colors(
  1. {Color? messageStatusSendingErrorColor,
  2. Color? messageStatusDeliveredColor,
  3. Color? messageStatusReadColor,
  4. Color? messageAuthorNameTextColor,
  5. ZowieColor? sentMessageBackgroundColor,
  6. Color? sentMessageContentsColor,
  7. Color? sentMessageImageUploadLoadingColor,
  8. Color? sentMessageVideoUploadLoadingColor,
  9. Color? sentMessageImagePlaceholderLoadingColor,
  10. Color? sentMessageImagePlaceholderBackgroundColor,
  11. Color? sentMessageLinksColor,
  12. ZowieColor? incomingMessageBackgroundColor,
  13. Color? incomingMessagePrimaryTextColor,
  14. Color? incomingMessageSecondaryTextColor,
  15. ZowieColor? incomingMessageFileIconColor,
  16. Color? incomingMessageFileDownloadSuccessIconColor,
  17. Color? incomingMessageDownloadFileIconColor,
  18. Color? incomingMessageDownloadFileLoadingColor,
  19. Color? incomingMessageImagePlaceholderLoadingColor,
  20. Color? incomingMessageImagePlaceholderBackgroundColor,
  21. Color? incomingMessageLinksColor,
  22. Color? backgroundColor,
  23. Color? newMessageTextColor,
  24. Color? newMessageHintTextColor,
  25. Color? sendAttachmentButtonColor,
  26. ZowieColor? sendTextButtonColor,
  27. Color? separatorColor,
  28. Color? chatMessagesLoadingColor,
  29. Color? quickButtonBackgroundColor,
  30. Color? quickButtonBackgroundPressedColor,
  31. Color? quickButtonTextColor,
  32. Color? quickButtonPressedStrokeColor,
  33. Color? quickButtonStrokeColor,
  34. Color? actionButtonBackgroundColor,
  35. Color? actionButtonBackgroundPressedColor,
  36. Color? actionButtonTextColor,
  37. Color? videoThumbnailPlaceholderColor,
  38. Color? notificationErrorContentsColor,
  39. Color? notificationErrorBackgroundColor,
  40. Color? notificationSuccessContentsColor,
  41. Color? notificationSuccessBackgroundColor,
  42. Color? zowieLogoButtonBackgroundPressedColor,
  43. Color? zowieLogoButtonPressedStrokeColor,
  44. Color? playVideoButtonBackgroundColor,
  45. Color? playVideoButtonBackgroundPressedColor,
  46. Color? playVideoButtonPlayIconColor,
  47. Color? actionButtonShadow,
  48. Color? typingAnimationTintColor,
  49. Color? announcementBackgroundColor,
  50. Color? announcementStrokeColor,
  51. Color? announcementTextColor,
  52. Color? announcementIconColor}
)

Implementation

static Future<bool> colors(
    {
    Color? messageStatusSendingErrorColor,
    Color? messageStatusDeliveredColor,
    Color? messageStatusReadColor,
    Color? messageAuthorNameTextColor,
    ZowieColor? sentMessageBackgroundColor,
    Color? sentMessageContentsColor,
    Color? sentMessageImageUploadLoadingColor,
    Color? sentMessageVideoUploadLoadingColor,
    Color? sentMessageImagePlaceholderLoadingColor,
    Color? sentMessageImagePlaceholderBackgroundColor,
    Color? sentMessageLinksColor,
    ZowieColor? incomingMessageBackgroundColor,
    Color? incomingMessagePrimaryTextColor,
    Color? incomingMessageSecondaryTextColor,
    ZowieColor? incomingMessageFileIconColor,
    Color? incomingMessageFileDownloadSuccessIconColor,
    Color? incomingMessageDownloadFileIconColor,
    Color? incomingMessageDownloadFileLoadingColor,
    Color? incomingMessageImagePlaceholderLoadingColor,
    Color? incomingMessageImagePlaceholderBackgroundColor,
    Color? incomingMessageLinksColor,
    Color? backgroundColor,
    Color? newMessageTextColor,
    Color? newMessageHintTextColor,
    Color? sendAttachmentButtonColor,
    ZowieColor? sendTextButtonColor,
    Color? separatorColor,
    Color? chatMessagesLoadingColor,
    Color? quickButtonBackgroundColor,
    Color? quickButtonBackgroundPressedColor,
    Color? quickButtonTextColor,
    Color? quickButtonPressedStrokeColor,
    Color? quickButtonStrokeColor,
    Color? actionButtonBackgroundColor,
    Color? actionButtonBackgroundPressedColor,
    Color? actionButtonTextColor,
    Color? videoThumbnailPlaceholderColor,
    Color? notificationErrorContentsColor,
    Color? notificationErrorBackgroundColor,
    Color? notificationSuccessContentsColor,
    Color? notificationSuccessBackgroundColor,
    Color? zowieLogoButtonBackgroundPressedColor,
    Color? zowieLogoButtonPressedStrokeColor,
    Color? playVideoButtonBackgroundColor,
    Color? playVideoButtonBackgroundPressedColor,
    Color? playVideoButtonPlayIconColor,
    Color? actionButtonShadow,
    Color? typingAnimationTintColor,
    Color? announcementBackgroundColor,
    Color? announcementStrokeColor,
    Color? announcementTextColor,
    Color? announcementIconColor}) async {
  final bool result = await _channel.invokeMethod(
    _methodColors,
    <String, dynamic>{
      "messageStatusSendingErrorColor":
          _getColorHex(messageStatusSendingErrorColor),
      "messageStatusDeliveredColor":
          _getColorHex(messageStatusDeliveredColor),
      "sentMessageBackgroundColor":
          _getZowieColorJson(sentMessageBackgroundColor),
      "sentMessageContentsColor": _getColorHex(sentMessageContentsColor),
      "sentMessageImageUploadLoadingColor":
          _getColorHex(sentMessageImageUploadLoadingColor),
      "sentMessageVideoUploadLoadingColor":
          _getColorHex(sentMessageVideoUploadLoadingColor),
      "sentMessageImagePlaceholderLoadingColor":
          _getColorHex(sentMessageImagePlaceholderLoadingColor),
      "sentMessageImagePlaceholderBackgroundColor":
          _getColorHex(sentMessageImagePlaceholderBackgroundColor),
      "sentMessageLinksColor": _getColorHex(sentMessageLinksColor),
      "incomingMessageBackgroundColor":
          _getZowieColorJson(incomingMessageBackgroundColor),
      "incomingMessagePrimaryTextColor":
          _getColorHex(incomingMessagePrimaryTextColor),
      "incomingMessageSecondaryTextColor":
          _getColorHex(incomingMessageSecondaryTextColor),
      "incomingMessageFileIconColor":
          _getZowieColorJson(incomingMessageFileIconColor),
      "incomingMessageFileDownloadSuccessIconColor":
          _getColorHex(incomingMessageFileDownloadSuccessIconColor),
      "incomingMessageDownloadFileIconColor":
          _getColorHex(incomingMessageDownloadFileIconColor),
      "incomingMessageDownloadFileLoadingColor":
          _getColorHex(incomingMessageDownloadFileLoadingColor),
      "incomingMessageImagePlaceholderLoadingColor":
          _getColorHex(incomingMessageImagePlaceholderLoadingColor),
      "incomingMessageImagePlaceholderBackgroundColor":
          _getColorHex(incomingMessageImagePlaceholderBackgroundColor),
      "incomingMessageLinksColor": _getColorHex(incomingMessageLinksColor),
      "backgroundColor": _getColorHex(backgroundColor),
      "newMessageTextColor": _getColorHex(newMessageTextColor),
      "newMessageHintTextColor": _getColorHex(newMessageHintTextColor),
      "sendAttachmentButtonColor": _getColorHex(sendAttachmentButtonColor),
      "sendTextButtonColor": _getZowieColorJson(sendTextButtonColor),
      "separatorColor": _getColorHex(separatorColor),
      "chatMessagesLoadingColor": _getColorHex(chatMessagesLoadingColor),
      "quickButtonBackgroundColor": _getColorHex(quickButtonBackgroundColor),
      "quickButtonTextColor": _getColorHex(quickButtonTextColor),
      "quickButtonPressedStrokeColor":
          _getColorHex(quickButtonPressedStrokeColor),
      "actionButtonBackgroundColor":
          _getColorHex(actionButtonBackgroundColor),
      "actionButtonBackgroundPressedColor":
          _getColorHex(actionButtonBackgroundPressedColor),
      "actionButtonTextColor": _getColorHex(actionButtonTextColor),
      "videoThumbnailPlaceholderColor":
          _getColorHex(videoThumbnailPlaceholderColor),
      "notificationErrorContentsColor":
          _getColorHex(notificationErrorContentsColor),
      "notificationErrorBackgroundColor":
          _getColorHex(notificationErrorBackgroundColor),
      "notificationSuccessContentsColor":
          _getColorHex(notificationSuccessContentsColor),
      "notificationSuccessBackgroundColor":
          _getColorHex(notificationSuccessBackgroundColor),
      "zowieLogoButtonBackgroundPressedColor":
          _getColorHex(zowieLogoButtonBackgroundPressedColor),
      "zowieLogoButtonPressedStrokeColor":
          _getColorHex(zowieLogoButtonPressedStrokeColor),
      "playVideoButtonBackgroundColor":
          _getColorHex(playVideoButtonBackgroundColor),
      "playVideoButtonBackgroundPressedColor":
          _getColorHex(playVideoButtonBackgroundPressedColor),
      "playVideoButtonPlayIconColor":
          _getColorHex(playVideoButtonPlayIconColor),
      "actionButtonShadow": _getColorHex(actionButtonShadow),
      "messageStatusReadColor": _getColorHex(messageStatusReadColor),
      "messageAuthorNameTextColor": _getColorHex(messageAuthorNameTextColor),
      "quickButtonBackgroundPressedColor":
          _getColorHex(quickButtonBackgroundPressedColor),
      "quickButtonStrokeColor": _getColorHex(quickButtonStrokeColor),
      "typingAnimationTintColor": _getColorHex(typingAnimationTintColor),
      "announcementBackgroundColor":
          _getColorHex(announcementBackgroundColor),
      "announcementStrokeColor": _getColorHex(announcementStrokeColor),
      "announcementTextColor": _getColorHex(announcementTextColor),
      "announcementIconColor": _getColorHex(announcementIconColor),
    },
  );
  return result;
}