setPathParam method

BuildRequest<T> setPathParam(
  1. String key,
  2. dynamic value
)

设置路径参数(用于RESTful风格) 例如:setPathParam("id", "123") 会将 /user/{id} 替换为 /user/123

Implementation

BuildRequest<T> setPathParam(String key, dynamic value) {
  _pathParams[key] = value;
  return this;
}