Message class

A Message provides information about a pending isolate message and the function that will be invoked to handle it.



Message({@required int index, @required String name, @required String messageObjectId, @required int size, FuncRef handler, SourceLocation location})


handler FuncRef
A reference to the function that will be invoked to handle this message.
@optional, read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
index int
The index in the isolate's message queue. The 0th message being the next message to be processed.
read / write
json Map<String, dynamic>
read / write, inherited
location SourceLocation
The source location of handler.
@optional, read / write
messageObjectId String
An instance id for the decoded message. This id can be passed to other RPCs, for example, getObject or evaluate.
read / write
name String
An advisory name describing this message.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int
The size (bytes) of the encoded message.
read / write
type String
Every response returned by the VM Service has the type property. This allows the client distinguish between different kinds of responses.
read / write, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

parse(Map<String, dynamic> json) Message