copyWith method

Future<Response<T>> copyWith({
  1. VenturoApiSecurity? security,
})

Implementation

Future<Response<T>> copyWith({
  VenturoApiSecurity? security,
}) {
  var currentSecutiry = VenturoApiManager.instance.config?.security;
  VenturoApiManager.instance.config?.security = security;
  return whenComplete(() {
    VenturoApiManager.instance.config?.security = currentSecutiry;
  });
}