debugMaybeDispatchDisposed function
- Object object
If memory allocations tracking is enabled, dispatch object disposal.
Should be called only from within an assert.
Returns true to make it easier to be wrapped into assert.
Implementation
bool debugMaybeDispatchDisposed(Object object) {
if (kFlutterMemoryAllocationsEnabled) {
FlutterMemoryAllocations.instance.dispatchObjectDisposed(object: object);
}
return true;
}