lejard-h / chopper

Chopper is an http client generator using source_gen and inspired from Retrofit.
https://hadrien-lejard.gitbook.io/chopper
Other
713 stars 123 forks source link

Chopper generator build runner null #254

Closed BismeetSingh closed 3 years ago

BismeetSingh commented 3 years ago

I get an error message while trying to use chopper generator with build runner: boolean expression must not be null Here is the code for the api: ` import 'package:bloc_example_retrofit/models/categories.dart'; import 'package:chopper/chopper.dart';

import '../model_converter.dart';

part 'api_service.chopper.dart';

@ChopperApi() abstract class ApiService extends ChopperService { @Get(path: '/categories.php') Future<Response> getCategories();

static ApiService create() { final client = ChopperClient( baseUrl: 'https://api.themoviedb.org/3', interceptors: [HttpLoggingInterceptor()], converter: ModelConverter(), errorConverter: JsonConverter(), services: [ $ApiService(), ], ); return $ApiService(client); } }

`

JEuler commented 3 years ago

Seems duplicate (https://github.com/lejard-h/chopper/issues/262)? Will try to publish PR today to fix it.

JEuler commented 3 years ago

Could you please try 4.0.1?