copyWith method

CarrierData copyWith({
  1. String? mobileNetworkCode,
  2. bool? carrierAllowsVOIP,
  3. String? mobileCountryCode,
  4. String? carrierName,
  5. String? isoCountryCode,
})

Implementation

CarrierData copyWith({
  String? mobileNetworkCode,
  bool? carrierAllowsVOIP,
  String? mobileCountryCode,
  String? carrierName,
  String? isoCountryCode,
}) {
  return CarrierData(
    mobileNetworkCode: mobileNetworkCode ?? this.mobileNetworkCode,
    carrierAllowsVOIP: carrierAllowsVOIP ?? this.carrierAllowsVOIP,
    mobileCountryCode: mobileCountryCode ?? this.mobileCountryCode,
    carrierName: carrierName ?? this.carrierName,
    isoCountryCode: isoCountryCode ?? this.isoCountryCode,
  );
}