Utils class

A utility class that provides methods to interact with device networking features such as getting IP addresses and controlling USB tethering.

This class provides methods to retrieve the IP address of the device and the PC, as well as methods to enable and disable USB tethering on the device.

Constructors

Utils()

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

getDeviceAddress() Future<String?>
Retrieves the device's internal IP address.
getPCAddress() Future<String?>
Retrieves the IP address of the current network interface.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
switchOffUSBTether() Future<bool>
Disables USB tethering on the device.
switchOnUSBTether() Future<bool>
Enables USB tethering on the device.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

androidPlatform → const MethodChannel