A bunch of the classes I implemented (for mocking purposes) without null safety have compilation errors now. Take this example:
class MockProvider extends Mock implements Provider<String>{}
This throws the error:
'Object.toString' ('String Function()') isn't a valid concrete implementation of
'Diagnosticable.toString' ('String Function({DiagnosticLevel minLevel})').
dart(invalid_implementation_override)
Mocking Firestore does something similar:
class MockFirestore extends Mock implements FirebaseFirestore {}
This creates the following error:
'Object.==' ('bool Function(Object)') isn't a valid concrete
implementation of 'FirebaseFirestore.==' ('bool Function(dynamic)')
How can I fix this?