copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
OnRampPaymentAvailability copyWith({
bool? isAllowed,
bool? isPurchaseAllowed,
List<OnRampPaymentMethod>? methods,
String? countryCode,
String? state,
dynamic extra,
int? clientId,
}) => OnRampPaymentAvailability(
isAllowed: isAllowed ?? this.isAllowed,
isPurchaseAllowed: isPurchaseAllowed ?? this.isPurchaseAllowed,
methods: methods ?? this.methods,
countryCode: countryCode ?? this.countryCode,
state: state ?? this.state,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);