copyWith method

Telephony copyWith({
  1. String? phoneType,
  2. String? networkOperatorName,
  3. String? networkOperatorCode,
  4. String? networkOperatorCountry,
  5. String? simProviderName,
  6. String? simProviderCountry,
  7. String? simState,
  8. String? networkType,
  9. bool? isDeviceRoaming,
})

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