attach method

LevitTaskTracker attach({
  1. Object? token,
})

Registers this tracker as global task middleware.

Implementation

LevitTaskTracker attach({Object? token}) {
  if (_disposed) {
    throw StateError('A disposed LevitTaskTracker cannot be attached.');
  }
  LevitTaskMiddleware.add(this, token: token);
  _attached = true;
  return this;
}