dispatchObjectTrace static method

void dispatchObjectTrace({
  1. required Object object,
  2. Map<String, dynamic>? context,
})

Dispatches additional context information to the leak_tracker.

See dispatchObjectCreated for parameters documentation.

Implementation

static void dispatchObjectTrace({
  required Object object,
  Map<String, dynamic>? context,
}) {
  assert(() {
    _baseliner?.takeSample();
    _leakTracker?.objectTracker.addContext(object, context: context);
    return true;
  }());
}