copyWith method

MiniProgramBackendRequest copyWith({
  1. Map<String, String>? headers,
  2. MiniProgramBackendCachePolicy? cachePolicy,
  3. bool? forceRefresh,
})

Implementation

MiniProgramBackendRequest copyWith({
  Map<String, String>? headers,
  MiniProgramBackendCachePolicy? cachePolicy,
  bool? forceRefresh,
}) {
  return MiniProgramBackendRequest(
    miniProgramId: miniProgramId,
    endpoint: endpoint,
    requestId: requestId,
    method: method,
    body: body,
    headers: headers ?? this.headers,
    cachePolicy: cachePolicy ?? this.cachePolicy,
    forceRefresh: forceRefresh ?? this.forceRefresh,
  );
}