Closed JosiahMendes closed 1 year ago
Replacing the when method previously defined as:
when(() => person.sleep()).thenAnswer((_) async {});
with:
when(() => person.sleep()).thenAnswer((_) => () async {});
solves the lint issue, but causes a runtime failure -
Bad state: No method stub was called from within `when()`. Was a real method called, or perhaps an extension method?
Thanks in advance!
Stupid error - confused two packages with a similar API. Using the right import fixes it
Describe the bug The example for solving Why am I seeing error: type 'Null' is not a subtype of type 'Future'? in the Mocktail README.md does not appear to compile.
To Reproduce
Logs Dart Analyze:
Additional context Add any other context about the problem here.