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