aloisdeniel / dio_retry

Retry interceptor for dio.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid constant value.dart(invalid_constant)

amreniouinnovent opened this issue · comments

I got Invalid constant value.dart(invalid_constant)
for the following line:

retryEvaluator: (error) => error.type != DioErrorType.CANCEL && error.type != DioErrorType.RESPONSE,

How could I fix this error?

@amreniouinnovent
removing all the "const" fixed it for me