flutter test fails. compiler error getter not found 'main'
If anybody faces the above problem then try to add main()
in test class and if you have added then remove it out of test class curly braces. I faced this and removed the main()
out of test class.
Eg...
class GetConcreteNumberTrivia_Test extends Mock implements NumberTriviaRepository {}void main() {.....my implementation......}