copyWith method
Wifi
copyWith({
- String? state,
- String? ssid,
- String? bssid,
- String? ipv4Address,
- String? ipv6Address,
- String? signalStrength,
- String? linkSpeed,
- String? frequency,
- String? networkId,
- String? gateway,
- String? netmask,
- String? dns1,
- String? dhcpLeaseDuration,
- String? w5ghzBand,
- bool? isWifiAware,
- bool? isWifiDirectAvailable,
Implementation
Wifi copyWith({
String? state,
String? ssid,
String? bssid,
bool? hiddenSsid,
String? ipv4Address,
String? ipv6Address,
String? signalStrength,
String? linkSpeed,
String? frequency,
String? networkId,
String? gateway,
String? netmask,
String? dns1,
String? dhcpLeaseDuration,
String? w5ghzBand,
bool? isWifiAware,
bool? isWifiDirectAvailable,
}) {
return Wifi(
state: state ?? this.state,
ssid: ssid ?? this.ssid,
bssid: bssid ?? this.bssid,
hiddenSsid: hiddenSsid ?? this.hiddenSsid,
ipv4Address: ipv4Address ?? this.ipv4Address,
ipv6Address: ipv6Address ?? this.ipv6Address,
signalStrength: signalStrength ?? this.signalStrength,
linkSpeed: linkSpeed ?? this.linkSpeed,
frequency: frequency ?? this.frequency,
networkId: networkId ?? this.networkId,
gateway: gateway ?? this.gateway,
netmask: netmask ?? this.netmask,
dns1: dns1 ?? this.dns1,
dhcpLeaseDuration: dhcpLeaseDuration ?? this.dhcpLeaseDuration,
w5ghzBand: w5ghzBand ?? this.w5ghzBand,
isWifiAware: isWifiAware ?? this.isWifiAware,
isWifiDirectAvailable:
isWifiDirectAvailable ?? this.isWifiDirectAvailable,
);
}