copyWith method

LokotroPaymentMethodListItem copyWith({
  1. String? id,
  2. String? name,
  3. String? displayName,
  4. LokotroPayChannel? channel,
  5. String? iconUrl,
  6. bool? isEnabled,
  7. bool? isSelected,
  8. Map<String, dynamic>? configuration,
})

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