update method

Future<void> update({
  1. required String baseURL,
  2. required String tokenType,
  3. required String token,
})

Implementation

Future<void> update({
  required String baseURL,
  required String tokenType,
  required String token,
}) async {
  BaseOptions options = BaseOptions(
    headers: {
      "Accept": "application/json",
      "Authorization": "$tokenType $token",
    },
    baseUrl: baseURL,
    /*connectTimeout: 180000,
    receiveTimeout: 180000,*/
    connectTimeout: const Duration(seconds: 60),
    receiveTimeout: const Duration(seconds: 60),
  );
  dio.options = options;
}