copyWith method

OnRampPaymentAvailability copyWith({
  1. bool? isAllowed,
  2. bool? isPurchaseAllowed,
  3. List<OnRampPaymentMethod>? methods,
  4. String? countryCode,
  5. String? state,
})

Implementation

OnRampPaymentAvailability copyWith({
  bool? isAllowed,
  bool? isPurchaseAllowed,
  List<OnRampPaymentMethod>? methods,
  String? countryCode,
  String? state,
}) =>
    OnRampPaymentAvailability(
      isAllowed: isAllowed ?? this.isAllowed,
      isPurchaseAllowed: isPurchaseAllowed ?? this.isPurchaseAllowed,
      methods: methods ?? this.methods,
      countryCode: countryCode ?? this.countryCode,
      state: state ?? this.state,
    );