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