dispatchObjectEvent static method

void dispatchObjectEvent(
  1. Map<Object, Map<String, Object>> event
)

Dispatches an object event to the leak_tracker.

Consumes the MemoryAllocations event format: https://github.com/flutter/flutter/blob/a479718b02a818fb4ac8d4900bf08ca389cd8e7d/packages/flutter/lib/src/foundation/memory_allocations.dart#L51

Implementation

static void dispatchObjectEvent(Map<Object, Map<String, Object>> event) {
  assert(() {
    dispatcher.dispatchObjectEvent(
      event,
      onStartTracking: dispatchObjectCreated,
      onDispatchDisposal: dispatchObjectDisposed,
    );
    return true;
  }());
}