disconnect static method
Disconnect from the currently connected network.
@returns True if successfully disconnected from the network. False in case of errors or if no network is currently connected.
Implementation
static Future<bool> disconnect() async {
final Map<String, bool> htArguments = Map();
bool? bResult;
try {
bResult = await _channel.invokeMethod('disconnect', htArguments);
} on MissingPluginException catch (e) {
print("MissingPluginException : ${e.toString()}");
}
return bResult ?? false;
}