Getting this error ‘type ‘Null’ is not a subtype of type ‘Future
void main() { late ApiManager apiManager; late MockHTTPClient mockHTTPClient; setUp(() { mockHTTPClient = MockHTTPClient(); apiManager = ApiManager(mockHTTPClient); }); test( ‘given UserRepository class when getUser function is called and status code is 200 then a usermodel should be returned’, () async { // Arrange const mockResponse = ‘{“status”: “200”}’; String url = “url”; when(() { return […]