copyWith method
copyWith is the function to copy the class.
Implementation
Telephony copyWith({
String? phoneType,
String? networkOperatorName,
String? networkOperatorCode,
String? networkOperatorCountry,
String? simProviderName,
String? simProviderCountry,
String? simState,
String? networkType,
bool? isDeviceRoaming,
}) {
return Telephony(
phoneType: phoneType ?? this.phoneType,
networkOperatorName: networkOperatorName ?? this.networkOperatorName,
networkOperatorCode: networkOperatorCode ?? this.networkOperatorCode,
networkOperatorCountry:
networkOperatorCountry ?? this.networkOperatorCountry,
simProviderName: simProviderName ?? this.simProviderName,
simProviderCountry: simProviderCountry ?? this.simProviderCountry,
simState: simState ?? this.simState,
networkType: networkType ?? this.networkType,
isDeviceRoaming: isDeviceRoaming ?? this.isDeviceRoaming,
);
}