Message class

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

Inheritance

Constructors

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

Properties

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

Methods

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

Operators

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

Static Methods

parse(Map<String, dynamic>? json) Message?
override