colors method

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

Implementation

static Future<bool> colors({
  Color messageStatusSendingErrorColor,
  Color messageStatusDeliveredColor,
  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 quickButtonTextColor,
  Color quickButtonPressedStrokeColor,
  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,
}) 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),
    },
  );
  return result;
}