UserMessageParams.withMessage constructor

UserMessageParams.withMessage(
  1. UserMessage userMessage, {
  2. bool? deepCopy,
})

Implementation

UserMessageParams.withMessage(UserMessage userMessage, {bool? deepCopy})
    : message = userMessage.message,
      pollId = userMessage.poll?.id,
      targetLanguages = userMessage.translations.keys.toList(),
      super.withMessage(userMessage, deepCopy: deepCopy);