simulateInvocationCounts method
Sets the counts reported by pendingInvocationCount and abandonedInvocationCount, for asserting on leak-detection code paths.
Implementation
void simulateInvocationCounts({int pending = 0, int abandoned = 0}) {
_pendingInvocations = pending;
_abandonedInvocations = abandoned;
}