Message.withBytes constructor

Message.withBytes(
  1. List<int> message, {
  2. Map<String, String> attributes,
})

Creates a new message with a binary body.

Message attributes can be passed in the attributes Map.

Implementation

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