wasCalled method

bool wasCalled(
  1. String methodName
)

Returns whether methodName was called at least once.

Implementation

bool wasCalled(String methodName) => (_callCounts[methodName] ?? 0) > 0;