copyWith method

PaymentForm copyWith({
  1. int? id,
  2. PaymentFormType? type,
  3. int? sellerBotUserId,
  4. ProductInfo? productInfo,
  5. dynamic extra,
  6. 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

PaymentForm copyWith({
  int? id,
  PaymentFormType? type,
  int? sellerBotUserId,
  ProductInfo? productInfo,
  dynamic extra,
  int? clientId,
}) => PaymentForm(
  id: id ?? this.id,
  type: type ?? this.type,
  sellerBotUserId: sellerBotUserId ?? this.sellerBotUserId,
  productInfo: productInfo ?? this.productInfo,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);