makeClient function

Dio makeClient({
  1. required String apiToken,
})

Implementation

Dio makeClient({
  required String apiToken,
}) {
  return Dio(
    BaseOptions(
      baseUrl: "https://api.localesync.com",
      validateStatus: (status) => true,
      headers: {
        "Repository-Token": apiToken,
        "Content-Type": "application/json",
      },
    ),
  );
}