dispatchObjectDisposed static method

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

Dispatches object disposal to the leak_tracker.

See dispatchObjectCreated for parameters documentation.

Implementation

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