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