### Get Wi-Fi information using NetworkInfo Source: https://pub.dev/documentation/network_info_plus/latest/index.html Import the network_info_plus package and use NetworkInfo to retrieve Wi-Fi name, BSSID, IP, IPv6, submask, broadcast, and gateway IP. Note that the Wi-Fi name may include quotes on Android. ```dart import 'package:network_info_plus/network_info_plus.dart'; final info = NetworkInfo(); final wifiName = await info.getWifiName(); // "FooNetwork" final wifiBSSID = await info.getWifiBSSID(); // 11:22:33:44:55:66 final wifiIP = await info.getWifiIP(); // 192.168.1.43 final wifiIPv6 = await info.getWifiIPv6(); // 2001:0db8:85a3:0000:0000:8a2e:0370:7334 final wifiSubmask = await info.getWifiSubmask(); // 255.255.255.0 final wifiBroadcast = await info.getWifiBroadcast(); // 192.168.1.255 final wifiGateway = await info.getWifiGatewayIP(); // 192.168.1.1 ``` -------------------------------- ### NetworkInfo() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfo-class.html Constructs a singleton instance of NetworkInfo. ```APIDOC ## NetworkInfo() ### Description Constructs a singleton instance of NetworkInfo. ### Constructor NetworkInfo() ### Usage ```dart final networkInfo = NetworkInfo(); ``` ``` -------------------------------- ### NetworkInfoPlusLinuxPlugin() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusLinuxPlugin-class.html Constructs a new instance of the Linux plugin implementation. ```APIDOC ## Constructor ### Description Creates a new instance of the Linux implementation of NetworkInfoPlatform. ### Constructor `NetworkInfoPlusLinuxPlugin()` ### Parameters None. ### Returns A new `NetworkInfoPlusLinuxPlugin` instance. ``` -------------------------------- ### NetworkInfoPlusWindowsPlugin() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusWindowsPlugin-class.html Constructor for the NetworkInfoPlusWindowsPlugin class. ```APIDOC ## NetworkInfoPlusWindowsPlugin() ### Description Creates an instance of the NetworkInfoPlusWindowsPlugin class. ### Constructor NetworkInfoPlusWindowsPlugin() ``` -------------------------------- ### NetworkInfoPlusLinuxPlugin Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/network_info_plus-library.html The Linux implementation of NetworkInfoPlatform. ```APIDOC ## NetworkInfoPlusLinuxPlugin ### Description The Linux implementation of NetworkInfoPlatform. ### Class NetworkInfoPlusLinuxPlugin ``` -------------------------------- ### registerWith() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusWindowsPlugin-class.html Static method to register the plugin with the platform. ```APIDOC ## registerWith() ### Description Static method to register the plugin with the platform. ### Method static void registerWith() ``` -------------------------------- ### NetworkInfoPlusWindowsPlugin Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/network_info_plus-library.html The Windows implementation of the network info plugin. ```APIDOC ## NetworkInfoPlusWindowsPlugin ### Description The Windows implementation of the network info plugin. ### Class NetworkInfoPlusWindowsPlugin ``` -------------------------------- ### registerWith() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusLinuxPlugin-class.html Registers this Dart class as the platform implementation for Linux. ```APIDOC ## Static Method: registerWith ### Description Register this dart class as the platform implementation for linux. ### Method `static void registerWith()` ### Parameters None. ### Returns `void` ``` -------------------------------- ### getWifiSubmask() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfo-class.html Obtains the submask of the connected wifi network. ```APIDOC ## getWifiSubmask() ### Description Obtains the submask of the connected wifi network. ### Method Future getWifiSubmask() ### Returns Future - The submask of the connected wifi network. ``` -------------------------------- ### WlanQuery Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/network_info_plus-library.html Typedef for a function that queries WLAN connection attributes. ```APIDOC ## WlanQuery ### Description Typedef for a function that queries WLAN connection attributes. ### Typedef WlanQuery = String? Function(Pointer pGuid, Pointer pAttributes) ``` -------------------------------- ### NetworkManagerClientFactory Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/network_info_plus-library.html Typedef for a factory function that returns a NetworkManagerClient. ```APIDOC ## NetworkManagerClientFactory ### Description Typedef for a factory function that returns a NetworkManagerClient. ### Typedef NetworkManagerClientFactory = NetworkManagerClient Function() ``` -------------------------------- ### getWifiIPv6() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfo-class.html Obtains the IPv6 address of the connected wifi network. ```APIDOC ## getWifiIPv6() ### Description Obtains the IPv6 address of the connected wifi network. ### Method Future getWifiIPv6() ### Returns Future - The IPv6 address of the connected wifi network. ``` -------------------------------- ### getWifiIPv6() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusLinuxPlugin-class.html Obtains the IPv6 address of the connected WiFi network. ```APIDOC ## Method: getWifiIPv6 ### Description Obtains the IP v6 address of the connected wifi network. ### Method `Future getWifiIPv6()` ### Parameters None. ### Returns `Future` - The IPv6 address of the connected WiFi network, or `null` if unavailable. ``` -------------------------------- ### NetworkInfo Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/network_info_plus-library.html The NetworkInfo class is used to discover network info, including Wi-Fi details and more. ```APIDOC ## NetworkInfo ### Description Discover network info: check WI-FI details and more. ### Class NetworkInfo ``` -------------------------------- ### getWifiName() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusLinuxPlugin-class.html Obtains the WiFi name (SSID) of the connected network. ```APIDOC ## Method: getWifiName ### Description Obtains the wifi name (SSID) of the connected network. ### Method `Future getWifiName()` ### Parameters None. ### Returns `Future` - The SSID of the connected WiFi network, or `null` if unavailable. ``` -------------------------------- ### getWifiName() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfo-class.html Obtains the wifi name (SSID) of the connected network. ```APIDOC ## getWifiName() ### Description Obtains the wifi name (SSID) of the connected network. ### Method Future getWifiName() ### Returns Future - The wifi name (SSID) of the connected network. ``` -------------------------------- ### getWifiIP() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfo-class.html Obtains the IPv4 address of the connected wifi network. ```APIDOC ## getWifiIP() ### Description Obtains the IPv4 address of the connected wifi network. ### Method Future getWifiIP() ### Returns Future - The IPv4 address of the connected wifi network. ``` -------------------------------- ### getWifiIP() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusLinuxPlugin-class.html Obtains the IPv4 address of the connected WiFi network. ```APIDOC ## Method: getWifiIP ### Description Obtains the IP v4 address of the connected wifi network. ### Method `Future getWifiIP()` ### Parameters None. ### Returns `Future` - The IPv4 address of the connected WiFi network, or `null` if unavailable. ``` -------------------------------- ### getWifiSubmask() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusLinuxPlugin-class.html Obtains the subnet mask of the connected WiFi network. ```APIDOC ## Method: getWifiSubmask ### Description Obtains the submask of the connected wifi network. ### Method `Future getWifiSubmask()` ### Parameters None. ### Returns `Future` - The subnet mask of the connected WiFi network, or `null` if unavailable. ``` -------------------------------- ### getWifiGatewayIP() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfo-class.html Obtains the gateway IP address of the connected wifi network. ```APIDOC ## getWifiGatewayIP() ### Description Obtains the gateway IP address of the connected wifi network. ### Method Future getWifiGatewayIP() ### Returns Future - The gateway IP address of the connected wifi network. ``` -------------------------------- ### getWifiGatewayIP() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusLinuxPlugin-class.html Obtains the gateway IP address of the connected WiFi network. ```APIDOC ## Method: getWifiGatewayIP ### Description Obtains the gateway IP address of the connected wifi network. ### Method `Future getWifiGatewayIP()` ### Parameters None. ### Returns `Future` - The gateway IP address of the connected WiFi network, or `null` if unavailable. ``` -------------------------------- ### getWifiBroadcast() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfo-class.html Obtains the broadcast of the connected wifi network. ```APIDOC ## getWifiBroadcast() ### Description Obtains the broadcast of the connected wifi network. ### Method Future getWifiBroadcast() ### Returns Future - The broadcast address of the connected wifi network. ``` -------------------------------- ### getWifiBSSID() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusLinuxPlugin-class.html Obtains the BSSID of the connected WiFi network. ```APIDOC ## Method: getWifiBSSID ### Description Obtains the wifi BSSID of the connected network. ### Method `Future getWifiBSSID()` ### Parameters None. ### Returns `Future` - The BSSID of the connected WiFi network, or `null` if unavailable. ``` -------------------------------- ### getWifiBSSID() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfo-class.html Obtains the wifi BSSID of the connected network. ```APIDOC ## getWifiBSSID() ### Description Obtains the wifi BSSID of the connected network. ### Method Future getWifiBSSID() ### Returns Future - The BSSID of the connected wifi network. ``` -------------------------------- ### getWifiBroadcast() Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/NetworkInfoPlusLinuxPlugin-class.html Obtains the broadcast address of the connected WiFi network. ```APIDOC ## Method: getWifiBroadcast ### Description Obtains the broadcast of the connected wifi network. ### Method `Future getWifiBroadcast()` ### Parameters None. ### Returns `Future` - The broadcast address of the connected WiFi network, or `null` if unavailable. ``` -------------------------------- ### LocationAuthorizationStatus Source: https://pub.dev/documentation/network_info_plus/latest/network_info_plus/network_info_plus-library.html Enum representing the status of the location service authorization. ```APIDOC ## LocationAuthorizationStatus ### Description The status of the location service authorization. ### Enum LocationAuthorizationStatus ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.