recreateMessage method

VIMessage recreateMessage(
  1. String uuid,
  2. String conversationUuid, {
  3. required String text,
  4. required List<Map<String, Object>> payload,
  5. int sequence = 0,
})

Recreate a message.

Note that this method does not create a message, but restore a previously created message from a local storage (database).

Returns VIMessage instance or null if uuid or conversationUuid were null.

uuid - Universally unique identifier of message

conversationUuid - UUID of the conversation this message belongs to

Optional text - Text of this message

Optional payload - List of payload objects associated with the message

Optional sequence - Message sequence number

Implementation

VIMessage recreateMessage(
  String uuid,
  String conversationUuid, {
  required String text,
  required List<Map<String, Object>> payload,
  int sequence = 0,
}) =>
    VIMessage._recreate(uuid, conversationUuid, text, payload, sequence);