Message class Null safety

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.
optional">@optionalread / write
hashCode int
The hash code for this object.
read-onlyinherited
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 / writeinherited
location SourceLocation?
The source location of handler.
optional">@optionalread / 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-onlyinherited
size int?
The size (bytes) of the encoded message.
read / write
type String
read-onlyoverride

Methods

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