copyWith method
MiniProgramBackendRequest
copyWith({
- Map<
String, String> ? headers, - MiniProgramBackendCachePolicy? cachePolicy,
- 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,
);
}