copyWith method
PaymentForm
copyWith({
- int? id,
- PaymentFormType? type,
- int? sellerBotUserId,
- ProductInfo? productInfo,
- dynamic extra,
- 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,
);