copyWith method

OnRampProvider copyWith({
  1. String? id,
  2. String? name,
  3. List<String>? cryptocurrencies,
  4. bool? supportsBaseCurrencies,
  5. bool? supportsLimits,
  6. bool? supportsQuote,
})

Implementation

OnRampProvider copyWith({
  String? id,
  String? name,
  List<String>? cryptocurrencies,
  bool? supportsBaseCurrencies,
  bool? supportsLimits,
  bool? supportsQuote,
}) =>
    OnRampProvider(
      id: id ?? this.id,
      name: name ?? this.name,
      cryptocurrencies: cryptocurrencies ?? this.cryptocurrencies,
      supportsBaseCurrencies:
          supportsBaseCurrencies ?? this.supportsBaseCurrencies,
      supportsLimits: supportsLimits ?? this.supportsLimits,
      supportsQuote: supportsQuote ?? this.supportsQuote,
    );