Wifi class

Wifi information about the device's wifi connection.

Constructors

Wifi.new({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})
constructor of Wifi class.
Wifi.fromJson(String source)
fromJson Returns a Wifi object from a json representation.
factory
Wifi.fromMap(Map<String, dynamic> map)
fromMap Returns a Wifi object from a map.
factory

Properties

bssid String?
bssid The wifi BSSID.
getter/setter pair
dhcpLeaseDuration String?
dhcpLeaseDuration The wifi network's DHCP lease duration in seconds.
getter/setter pair
dns1 String?
dns1 The wifi network's dns1.
getter/setter pair
frequency String?
frequency The wifi network's frequency in MHz.
getter/setter pair
gateway String?
gateway The wifi network's gateway.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
hiddenSsid bool?
hiddenSsid The wifi network ssid is hidden oe not.i.e - hidden-true,not hidden-false else null.
getter/setter pair
ipv4Address String?
ipv4Address The wifi network's ipv4 address.
getter/setter pair
ipv6Address String?
ipv6Address The wifi network's ipv6 address.
getter/setter pair
isWifiAware bool?
Wi-Fi Aware capabilities enable devices running Android 8.0 (API level 26) and higher to discover and connect directly to each other without any other type of connectivity between them. Wi-Fi Aware is also known as Neighbor Awareness Networking (NAN).
getter/setter pair
isWifiDirectAvailable bool?
Wi-Fi Direct (also known as peer-to-peer or P2P) allows your application to quickly find and interact with nearby devices, at a range beyond the capabilities of Bluetooth.
getter/setter pair
linkSpeed String?
linkSpeed The wifi network's link speed in Mbps.
getter/setter pair
netmask String?
netmask The wifi network's netmask.
getter/setter pair
networkId String?
networkId The wifi network's network id.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signalStrength String?
signalStrength The wifi network's signal strength in dbM.
getter/setter pair
ssid String?
ssid The wifi SSID.
getter/setter pair
state String?
state The wifi state.
getter/setter pair
w5ghzBand String?
w5ghzBand The wifi network is 5ghz or not. i.e - 5ghz-supported,not 5ghz-unsupported else null.
getter/setter pair

Methods

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}) Wifi
copyWith returns a new instance of Wifi class.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toJson Returns a json representation of the object.
toMap() Map<String, dynamic>
toMap Returns a map representation of the object.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override