Flow class - dart:developer library (original) (raw)
A class to represent Flow events.
Flow objects are used to thread flow events between timeline slices, for example, those created with the Timeline class below. AddingFlow objects cause arrows to be drawn between slices in Chrome's trace viewer. The arrows start at e.g Timeline events that are passed aFlow.begin object, go through Timeline events that are passed aFlow.step object, and end at Timeline events that are passed aFlow.end object, all having the same Flow.id. For example:
var flow = Flow.begin();
Timeline.timeSync('flow_test', () {
doSomething();
}, flow: flow);
Timeline.timeSync('flow_test', () {
doSomething();
}, flow: Flow.step(flow.id));
Timeline.timeSync('flow_test', () {
doSomething();
}, flow: Flow.end(flow.id));
Properties
The hash code for this object.
no setterinherited
The flow id of the flow event.
final
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
A string representation of this object.
inherited
Operators
operator ==(Object other)→ bool
The equality operator.
inherited
Static Methods
A "begin" Flow event.
An "end" Flow event.
A "step" Flow event.