copyWith method

OnRampPaymentAvailability copyWith({
  1. bool? isAllowed,
  2. bool? isPurchaseAllowed,
  3. List<OnRampPaymentMethod>? methods,
  4. String? countryCode,
  5. String? state,
  6. dynamic extra,
  7. 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

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,
);