replace<NewBodyType> method

Response<NewBodyType> replace <NewBodyType>(
  1. {BaseResponse base,
  2. NewBodyType body,
  3. Object bodyError}
)

Implementation

Response<NewBodyType> replace<NewBodyType>({
  http.BaseResponse base,
  NewBodyType body,
  Object bodyError,
}) =>
    Response<NewBodyType>(
      base ?? this.base,
      body ?? (this.body as NewBodyType),
      error: bodyError ?? error,
    );