Message class

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



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


handler FuncRef?
A reference to the function that will be invoked to handle this message.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
index int?
The index in the isolate's message queue. The 0th message being the next message to be processed.
getter/setter pair
json Map<String, dynamic>?
getter/setter pairinherited
location SourceLocation?
The source location of handler.
getter/setter pair
messageObjectId String?
An instance id for the decoded message. This id can be passed to other RPCs, for example, getObject or evaluate.
getter/setter pair
name String?
An advisory name describing this message.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The size (bytes) of the encoded message.
getter/setter pair
type String
no setteroverride


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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?