copyWith method

CarrierData copyWith({
  1. bool? allowsVOIP,
  2. String? carrierName,
  3. String? isoCountryCode,
  4. String? mobileCountryCode,
  5. String? mobileNetworkCode,
  6. String? mobileNetworkOperator,
  7. String? networkGeneration,
  8. String? radioType,
  9. int? cid,
  10. int? lac,
})

Implementation

CarrierData copyWith(
    {bool? allowsVOIP,
    String? carrierName,
    String? isoCountryCode,
    String? mobileCountryCode,
    String? mobileNetworkCode,
    String? mobileNetworkOperator,
    String? networkGeneration,
    String? radioType,
    int? cid,
    int? lac}) {
  return CarrierData(
    allowsVOIP: allowsVOIP ?? this.allowsVOIP,
    carrierName: carrierName ?? this.carrierName,
    isoCountryCode: isoCountryCode ?? this.isoCountryCode,
    mobileCountryCode: mobileCountryCode ?? this.mobileCountryCode,
    mobileNetworkCode: mobileNetworkCode ?? this.mobileNetworkCode,
    mobileNetworkOperator:
        mobileNetworkOperator ?? this.mobileNetworkOperator,
    networkGeneration: networkGeneration ?? this.networkGeneration,
    radioType: radioType ?? this.radioType,
    cid: cid ?? this.cid,
    lac: lac ?? this.lac,
  );
}