attach method

void attach()

Implementation

void attach() {
  _checkNotDisposed();
  _subscription ??= DebugEvents.stream.listen(record);
}