startSync static method

void startSync(
  1. String name, {
  2. Map<String, Object?>? arguments,
  3. Flow? flow,
})

Start a synchronous operation labeled name.

Optionally takes a map of arguments. This slice may also optionally be associated with a Flow event. This operation must be finished by calling finishSync before returning to the event queue.

This is a drop-in replacement for Timeline.startSync.

Implementation

static void startSync(String name, { Map<String, Object?>? arguments, Flow? flow }) {
  Timeline.startSync(name, arguments: arguments, flow: flow);
  if (!kReleaseMode && _collectionEnabled) {
    _buffer.startSync(name, arguments: arguments, flow: flow);
  }
}