Message class

Represents a message with headers and body.

Constructors

Message(Map<String, Object> headers, Map<String, Object> body)
Constructs a Message with the given headers and body.
Message.fromJS(Message message)
Constructs a Message from a JavaScript binding message.

Properties

body Map<String, Object>
Gets the body of the message.
no setter
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, Object>
Gets the headers of the message.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

mapJsBody(JSAny body) → dynamic
Maps JavaScript body to Dart body.
mapJsHeaders(JSAny headers) → dynamic
Maps JavaScript headers to Dart headers.