Event class Null safety

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.



Event({String? kind, int? timestamp, IsolateRef? isolate, VMRef? vm, Breakpoint? breakpoint, List<Breakpoint>? pauseBreakpoints, Frame? topFrame, InstanceRef? exception, String? bytes, InstanceRef? inspectee, String? gcType, 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, String? updatedTag, String? previousTag, CpuSamplesEvent? cpuSamples, ByteData? data})


alias String?
The alias of the registered service.
read / write
atAsyncSuspension bool?
Is the isolate paused at an await, yield, or yield* statement?
read / write
breakpoint Breakpoint?
The breakpoint which was added, removed, or resolved.
read / write
bytes String?
An array of bytes, encoded as a base64 string.
read / write
cpuSamples CpuSamplesEvent?
A CPU profile containing recent samples.
read / write
data ByteData?
Binary data associated with the event.
read / write
exception InstanceRef?
The exception associated with this event, if this is a PauseException event.
read / write
extensionData ExtensionData?
The extension event data.
read / write
extensionKind String?
The extension event kind.
read / write
extensionRPC String?
The RPC name of the extension that was added.
read / write
flag String?
The name of the changed flag.
read / write
gcType String?
The garbage collection (GC) operation performed.
read / write
hashCode int
The hash code for this object.
inspectee InstanceRef?
The argument passed to dart:developer.inspect.
read / write
isolate IsolateRef?
The isolate with which this event is associated.
read / write
json Map<String, dynamic>?
read / writeinherited
kind String?
What kind of event is this?
read / write
last bool?
Specifies whether this event is the last of a group of events.
read / write
logRecord LogRecord?
LogRecord data.
read / write
method String?
The RPC method that should be used to invoke the service.
read / write
newValue String?
The new value of the changed flag.
read / write
pauseBreakpoints List<Breakpoint>?
The list of breakpoints at which we are currently paused for a PauseBreakpoint event.
read / write
previousTag String?
The previous UserTag label.
read / write
runtimeType Type
A representation of the runtime type of the object.
service String?
The service identifier.
read / write
status String?
The status (success or failure) related to the event. This is provided for the event kinds:
read / write
timelineEvents List<TimelineEvent>?
An array of TimelineEvents
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.
read / write
type String
updatedStreams List<String>?
The new set of recorded timeline streams.
read / write
updatedTag String?
The current UserTag label.
read / write
vm VMRef?
The vm with which this event is associated.
read / write


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