Message.withString constructor

Message.withString(
  1. String message, {
  2. Map<String, String> attributes,
})

Creates a new message with a String for the body. The String will be UTF-8 encoded to create the actual binary body for the message.

Message attributes can be passed in the attributes map.

Implementation

factory Message.withString(String message, {Map<String, String> attributes}) =
    _MessageImpl.withString;