copyWith method

  1. @override
InternalLinkTypePassportDataRequest copyWith({
  1. int? botUserId,
  2. String? scope,
  3. String? publicKey,
  4. String? nonce,
  5. String? callbackUrl,
  6. dynamic extra,
  7. int? clientId,
})
override

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

Implementation

@override
InternalLinkTypePassportDataRequest copyWith({
  int? botUserId,
  String? scope,
  String? publicKey,
  String? nonce,
  String? callbackUrl,
  dynamic extra,
  int? clientId,
}) => InternalLinkTypePassportDataRequest(
  botUserId: botUserId ?? this.botUserId,
  scope: scope ?? this.scope,
  publicKey: publicKey ?? this.publicKey,
  nonce: nonce ?? this.nonce,
  callbackUrl: callbackUrl ?? this.callbackUrl,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);