copyWith method

OauthLinkInfo copyWith({
  1. int? userId,
  2. String? url,
  3. String? domain,
  4. bool? fromApp,
  5. String? verifiedAppName,
  6. int? botUserId,
  7. bool? requestWriteAccess,
  8. bool? requestPhoneNumberAccess,
  9. bool? requestTonWalletAccess,
  10. String? dappClientId,
  11. String? tonConnectManifestUrl,
  12. String? tonProofPayload,
  13. String? browser,
  14. String? platform,
  15. String? ipAddress,
  16. String? location,
  17. bool? matchCodeFirst,
  18. List<String>? matchCodes,
  19. dynamic extra,
  20. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

OauthLinkInfo copyWith({
  int? userId,
  String? url,
  String? domain,
  bool? fromApp,
  String? verifiedAppName,
  int? botUserId,
  bool? requestWriteAccess,
  bool? requestPhoneNumberAccess,
  bool? requestTonWalletAccess,
  String? dappClientId,
  String? tonConnectManifestUrl,
  String? tonProofPayload,
  String? browser,
  String? platform,
  String? ipAddress,
  String? location,
  bool? matchCodeFirst,
  List<String>? matchCodes,
  dynamic extra,
  int? clientId,
}) => OauthLinkInfo(
  userId: userId ?? this.userId,
  url: url ?? this.url,
  domain: domain ?? this.domain,
  fromApp: fromApp ?? this.fromApp,
  verifiedAppName: verifiedAppName ?? this.verifiedAppName,
  botUserId: botUserId ?? this.botUserId,
  requestWriteAccess: requestWriteAccess ?? this.requestWriteAccess,
  requestPhoneNumberAccess:
      requestPhoneNumberAccess ?? this.requestPhoneNumberAccess,
  requestTonWalletAccess:
      requestTonWalletAccess ?? this.requestTonWalletAccess,
  dappClientId: dappClientId ?? this.dappClientId,
  tonConnectManifestUrl: tonConnectManifestUrl ?? this.tonConnectManifestUrl,
  tonProofPayload: tonProofPayload ?? this.tonProofPayload,
  browser: browser ?? this.browser,
  platform: platform ?? this.platform,
  ipAddress: ipAddress ?? this.ipAddress,
  location: location ?? this.location,
  matchCodeFirst: matchCodeFirst ?? this.matchCodeFirst,
  matchCodes: matchCodes ?? this.matchCodes,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);