copyWithWrapped method

ShopifySharpClientDetails copyWithWrapped({
  1. Wrapped<String?>? acceptLanguage,
  2. Wrapped<int?>? browserHeight,
  3. Wrapped<String?>? browserIp,
  4. Wrapped<int?>? browserWidth,
  5. Wrapped<String?>? sessionHash,
  6. Wrapped<String?>? userAgent,
})

Implementation

ShopifySharpClientDetails copyWithWrapped({
  Wrapped<String?>? acceptLanguage,
  Wrapped<int?>? browserHeight,
  Wrapped<String?>? browserIp,
  Wrapped<int?>? browserWidth,
  Wrapped<String?>? sessionHash,
  Wrapped<String?>? userAgent,
}) {
  return ShopifySharpClientDetails(
    acceptLanguage: (acceptLanguage != null
        ? acceptLanguage.value
        : this.acceptLanguage),
    browserHeight: (browserHeight != null
        ? browserHeight.value
        : this.browserHeight),
    browserIp: (browserIp != null ? browserIp.value : this.browserIp),
    browserWidth: (browserWidth != null
        ? browserWidth.value
        : this.browserWidth),
    sessionHash: (sessionHash != null ? sessionHash.value : this.sessionHash),
    userAgent: (userAgent != null ? userAgent.value : this.userAgent),
  );
}