copyWith method
Implementation
LokotroPaymentMethodListItem copyWith({
String? id,
String? name,
String? displayName,
LokotroPayChannel? channel,
String? iconUrl,
bool? isEnabled,
bool? isSelected,
Map<String, dynamic>? configuration,
}) {
return LokotroPaymentMethodListItem(
id: id ?? this.id,
name: name ?? this.name,
displayName: displayName ?? this.displayName,
channel: channel ?? this.channel,
iconUrl: iconUrl ?? this.iconUrl,
isEnabled: isEnabled ?? this.isEnabled,
isSelected: isSelected ?? this.isSelected,
configuration: configuration ?? this.configuration,
);
}