flutter-chopper-tutorial-course
flutter-chopper-tutorial-course copied to clipboard
The named parameter 'create' is required, but there's no corresponding argument.
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.