setBearerAuth method
Implementation
void setBearerAuth(String name, String token) {
if (dio.interceptors.any((i) => i is BearerAuthInterceptor)) {
(dio.interceptors.firstWhere((i) => i is BearerAuthInterceptor)
as BearerAuthInterceptor)
.tokens[name] =
token;
}
}