copyWith method

GetPassportAuthorizationForm copyWith({
  1. int? botUserId,
  2. String? scope,
  3. String? publicKey,
  4. String? nonce,
})

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

Implementation

GetPassportAuthorizationForm copyWith({
  int? botUserId,
  String? scope,
  String? publicKey,
  String? nonce,
}) =>
    GetPassportAuthorizationForm(
      botUserId: botUserId ?? this.botUserId,
      scope: scope ?? this.scope,
      publicKey: publicKey ?? this.publicKey,
      nonce: nonce ?? this.nonce,
    );