copyWith method

PubDevClientInvokeParameters copyWith({
  1. Map? parameters,
  2. String? urlPathScheme,
  3. Map<String, dynamic>? urlQueryParameters,
  4. String? userAgent,
  5. bool? isThrowOnError,
  6. Duration? durationTimeOut,
})

Implementation

PubDevClientInvokeParameters copyWith(
    {Map<dynamic, dynamic>? parameters,
    String? urlPathScheme,
    Map<String, dynamic>? urlQueryParameters,
    String? userAgent,
    bool? isThrowOnError,
    Duration? durationTimeOut}) {
  return PubDevClientInvokeParameters(
    parameters: parameters ?? this.parameters,
    urlPathScheme: urlPathScheme ?? this.urlPathScheme,
    urlQueryParameters: urlQueryParameters ?? this.urlQueryParameters,
    userAgent: userAgent ?? this.userAgent,
    isThrowOnError: isThrowOnError ?? this.isThrowOnError,
    durationTimeOut: durationTimeOut ?? this.durationTimeOut,
  );
}