NetworkInfoPlatform class abstract

The interface that implementations of network_info must implement.

Platform implementations should extend this class rather than implement it as NetworkInfo does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added NetworkInfoPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • NetworkInfoPlatform
Implementers

Constructors

NetworkInfoPlatform()
Constructs a NetworkInfoPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getWifiBroadcast() Future<String?>
Obtains the broadcast of the connected wifi network
getWifiBSSID() Future<String?>
Obtains the wifi BSSID of the connected network.
getWifiGatewayIP() Future<String?>
Obtains the gateway IP address of the connected wifi network
getWifiIP() Future<String?>
Obtains the IP v4 address of the connected wifi network
getWifiIPv6() Future<String?>
Obtains the IP v6 address of the connected wifi network
getWifiName() Future<String?>
Obtains the wifi name (SSID) of the connected network
getWifiSubmask() Future<String?>
Obtains the submask of the connected wifi network
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

Static Properties

instance NetworkInfoPlatform
The default instance of NetworkInfoPlatform to use.
getter/setter pair