isMock property

  1. @visibleForTesting
  2. @Deprecated('Use MockPlatformInterfaceMixin instead')
bool isMock

Only mock implementations should set this to true.

Mockito mocks implement this class with implements which is forbidden (see class docs). This property provides a backdoor for mocks to skip the verification that the class isn't implemented with implements.

Implementation

@visibleForTesting
@Deprecated('Use MockPlatformInterfaceMixin instead')
bool get isMock => false;