copyWith method

TelephonyInfo copyWith({
  1. String? networkCountryIso,
  2. String? mobileCountryCode,
  3. String? mobileNetworkCode,
  4. String? displayName,
  5. String? simState,
  6. String? isoCountryCode,
  7. CellId? cellId,
  8. String? phoneNumber,
  9. String? carrierName,
  10. int? subscriptionId,
  11. int? phoneCount,
  12. String? networkGeneration,
  13. String? radioType,
  14. String? networkOperatorName,
})

Implementation

TelephonyInfo copyWith({
  String? networkCountryIso,
  String? mobileCountryCode,
  String? mobileNetworkCode,
  String? displayName,
  String? simState,
  String? isoCountryCode,
  CellId? cellId,
  String? phoneNumber,
  String? carrierName,
  int? subscriptionId,
  int? phoneCount,
  String? networkGeneration,
  String? radioType,
  String? networkOperatorName,
}) {
  return TelephonyInfo(
    networkCountryIso: networkCountryIso ?? this.networkCountryIso,
    mobileCountryCode: mobileCountryCode ?? this.mobileCountryCode,
    mobileNetworkCode: mobileNetworkCode ?? this.mobileNetworkCode,
    displayName: displayName ?? this.displayName,
    simState: simState ?? this.simState,
    isoCountryCode: isoCountryCode ?? this.isoCountryCode,
    cellId: cellId ?? this.cellId,
    phoneNumber: phoneNumber ?? this.phoneNumber,
    carrierName: carrierName ?? this.carrierName,
    subscriptionId: subscriptionId ?? this.subscriptionId,
    networkGeneration: networkGeneration ?? this.networkGeneration,
    radioType: radioType ?? this.radioType,
    networkOperatorName: networkOperatorName ?? this.networkOperatorName,
  );
}