Event class

An Event is an asynchronous notification from the VM. It is delivered only when the client has subscribed to an event stream using the streamListen RPC.

For more information, see events.

Inheritance

Constructors

Event({@required String kind, @required int timestamp, IsolateRef isolate, VMRef vm, Breakpoint breakpoint, List<Breakpoint> pauseBreakpoints, Frame topFrame, InstanceRef exception, String bytes, InstanceRef inspectee, String extensionRPC, String extensionKind, ExtensionData extensionData, List<TimelineEvent> timelineEvents, List<String> updatedStreams, bool atAsyncSuspension, String status, LogRecord logRecord, String service, String method, String alias, String flag, String newValue, bool last, ByteData data})

Properties

alias String
The alias of the registered service. [...]
@optional, read / write
atAsyncSuspension bool
Is the isolate paused at an await, yield, or yield* statement? [...]
@optional, read / write
breakpoint Breakpoint
The breakpoint which was added, removed, or resolved. [...]
@optional, read / write
bytes String
An array of bytes, encoded as a base64 string. [...]
@optional, read / write
data ByteData
Binary data associated with the event. [...]
@optional, read / write
exception InstanceRef
The exception associated with this event, if this is a PauseException event.
@optional, read / write
extensionData ExtensionData
The extension event data. [...]
@optional, read / write
extensionKind String
The extension event kind. [...]
@optional, read / write
extensionRPC String
The RPC name of the extension that was added. [...]
@optional, read / write
flag String
The name of the changed flag. [...]
@optional, read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
inspectee InstanceRef
The argument passed to dart:developer.inspect. [...]
@optional, read / write
isolate IsolateRef
The isolate with which this event is associated. [...]
@optional, read / write
json Map<String, dynamic>
read / write, inherited
kind String
What kind of event is this?
read / write
last bool
Specifies whether this event is the last of a group of events. [...]
@optional, read / write
logRecord LogRecord
LogRecord data. [...]
@optional, read / write
method String
The RPC method that should be used to invoke the service. [...]
@optional, read / write
newValue String
The new value of the changed flag. [...]
@optional, read / write
pauseBreakpoints List<Breakpoint>
The list of breakpoints at which we are currently paused for a PauseBreakpoint event. [...]
@optional, read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
service String
The service identifier. [...]
@optional, read / write
status String
The status (success or failure) related to the event. This is provided for the event kinds: [...]
@optional, read / write
timelineEvents List<TimelineEvent>
An array of TimelineEvents [...]
@optional, read / write
timestamp int
The timestamp (in milliseconds since the epoch) associated with this event. For some isolate pause events, the timestamp is from when the isolate was paused. For other events, the timestamp is from when the event was created.
read / write
topFrame Frame
The top stack frame associated with this event, if applicable. [...]
@optional, 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
updatedStreams List<String>
The new set of recorded timeline streams. [...]
@optional, read / write
vm VMRef
The vm with which this event is associated. [...]
@optional, read / write

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) Event
override