setAuthToken static method
Implementation
static XHttp setAuthToken([String? token]) {
// if (null == token) {
// dio?.options.headers.remove('API-Auth');
// dio?.options.headers.remove('API-KEY');
// } else {
// dio?.options.headers['API-Auth'] = token;
// dio?.options.headers['API-KEY'] = '12345';
// }
return _instance;
}