TraceEvent class abstract base

The base of every recorded call; see the library comment for why it is open and what a switch over it owes.

Implementers

Constructors

TraceEvent()
Lets a subclass be a const value.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
kind → String
The event's name in a trace file.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(TraceBlobWriter blob) → Map<String, Object?>
Returns the event as the JSON object a trace file holds, without its kind key, with every byte payload handed to blob and written as the reference it returns.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, Object?> j, TraceBlobReader blob) → TraceEvent
Reads one event back from its JSON object j, resolving byte payloads through blob.