copyWith method

SimInfo copyWith({
  1. String? carrierName,
  2. String? displayName,
  3. String? slotIndex,
  4. String? number,
  5. String? countryIso,
  6. String? countryPhonePrefix,
})

Implementation

SimInfo copyWith({
  String? carrierName,
  String? displayName,
  String? slotIndex,
  String? number,
  String? countryIso,
  String? countryPhonePrefix,
}) {
  return SimInfo(
    carrierName: carrierName ?? this.carrierName,
    displayName: displayName ?? this.displayName,
    slotIndex: slotIndex ?? this.slotIndex,
    number: number ?? this.number,
    countryIso: countryIso ?? this.countryIso,
    countryPhonePrefix: countryPhonePrefix ?? this.countryPhonePrefix,
  );
}