NetworkHelper class
A network function set.
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
-
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 Methods
-
connectivityResult(
) → Future< ConnectivityResult> - Get connectivity result
-
connectivityType(
) → Future< ConnectivityResult> - Get connectivity type
-
isBluetooth(
) → Future< bool> - Current connectivity whether bluetooth
-
isEthernet(
) → Future< bool> - Current connectivity whether ethernet
-
isMobile(
) → Future< bool> - Current connectivity whether mobile
-
isWifi(
) → Future< bool> - Current connectivity whether wifi
-
listenConnectivityChange(
void onChanged(ConnectivityResult newConnectivityStatus), {Function? onError, bool? cancelOnError}) → StreamSubscription - Listen connectivity changed
-
networkConnectivity(
{bool bluetooth = false}) → Future< bool> - Check device connected network.
-
wifiIp(
) → Future< String> - Get wifi ip
-
wifiName(
) → Future< String> - Get wifi name