flutter-chopper-tutorial-course icon indicating copy to clipboard operation
flutter-chopper-tutorial-course copied to clipboard

The named parameter 'create' is required, but there's no corresponding argument.

Open iamedriancamacho opened this issue 4 years ago • 0 comments

after creating the 'create' method, another error will open

Couldn't infer type parameter 'T'.

Tried to infer 'Null' for 'T' which doesn't work: Parameter 'dispose' declared as 'void Function(BuildContext, T)?' but argument is 'void Function(BuildContext, PostApiService)'. The type 'Null' was inferred from: Parameter 'create' declared as 'T Function(BuildContext)' but argument is 'Null Function(BuildContext)'.

Consider passing explicit type argument(s) to the generic.

iamedriancamacho avatar Aug 20 '21 06:08 iamedriancamacho