This is a project i created while learning how to write a Flutter app using TDD Clean Architecture.
This project is based on the following from Reso Coder.
i.e. @override List get props => [text, number]; instead of : super([text, number])
-
This line had to be removed: class MockNumberTriviaRepository extends Mock implements NumberTriviaRepository {}
-
and Main method needed to be annotated with this: @GenerateMocks([NumberTriviaRepository]) PS. you need to import mockito/annotations.dart
-
Run
flutter pub run build_runner build
-
Import the new generated class (MockNumberTriviaRepository)
internet_connection_checker: ^0.0.1+4