When mocking a class C we say Mock implements C so for
this to compile Mock has to be a valid implementation of C.
This wasn't the case for classes with an overridden operator == that
accepts dynamic or Object?. Widen the Mock.operator == argument's
type to accomodate for this case.
Widen argument type of
Mock.operator ==
When mocking a class
C
we sayMock implements C
so for this to compileMock
has to be a valid implementation ofC
.This wasn't the case for classes with an overridden
operator ==
that acceptsdynamic
orObject?
. Widen theMock.operator ==
argument's type to accomodate for this case.