build_client function

Dio build_client(
  1. String token
)

Implementation

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