Request<Success>.copyWith constructor

Request<Success>.copyWith(
  1. Request<Success> request
)

Implementation

factory Request.copyWith(Request<Success> request) {
  var newRequest = Request<Success>._internal();
  newRequest
    ..method = request.method
    ..url = request.url
    ..baseUrl = request.baseUrl
    ..isIncludeBaseUrl = true
    ..body = request.body;
  return newRequest;
}