copyWith method

Network copyWith({
  1. Telephony? telephony,
  2. Wifi? wifi,
})

copyWith is the method to copy the class.

Implementation

Network copyWith({
  Telephony? telephony,
  Wifi? wifi,
}) {
  return Network(
    telephony: telephony ?? this.telephony,
    wifi: wifi ?? this.wifi,
  );
}