build_client function
Implementation
Dio build_client(String token) {
final client = Dio();
client.options.headers['Authorization'] = 'Bearer $token'; // Added 'Bearer'
return client;
}
Dio build_client(String token) {
final client = Dio();
client.options.headers['Authorization'] = 'Bearer $token'; // Added 'Bearer'
return client;
}