copyWith method

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

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

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