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({required int? index, required String? name, required String? messageObjectId, required int? size, FuncRef? handler, SourceLocation? location})

Properties

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
read-only, override

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