isMock property

  1. @visibleForTesting
bool get isMock
inherited

Only mock implementations should set this to true.

Mockito mocks are implementing this class with implements, which is forbidden for anything other than mocks (see class docs). This property provides a backdoor for mockito mocks to skip the verification that the class is not implemented with implements.

Implementation

@visibleForTesting
bool get isMock => false;