WifiState class

Represents the Wi-Fi state, including whether Wi-Fi is enabled, connected, and the network name.

Constructors

WifiState({required bool isEnabled, required bool isConnected, String? connectedWifiName})
Constructs a WifiState object with the specified Wi-Fi state information.
WifiState.fromMap(Map<String, dynamic> map)
Creates a WifiState from a map, typically received from platform code.
factory

Properties

connectedWifiName String?
The name (SSID) of the connected Wi-Fi network.
final
hashCode int
The hash code for this object.
no setterinherited
isConnected bool
Indicates if the device is connected to a Wi-Fi network.
final
isEnabled bool
Indicates if Wi-Fi is enabled.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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