removeWifiNetwork static method

Future<bool> removeWifiNetwork(
  1. String ssid
)

Implementation

static Future<bool> removeWifiNetwork(String ssid) async {
  final Map<String, String> htArguments = Map();
  htArguments["ssid"] = ssid;
  bool? bResult;
  try {
    bResult = await _channel.invokeMethod('removeWifiNetwork', htArguments);
  } on MissingPluginException catch (e) {
    print("MissingPluginException : ${e.toString()}");
  } on PlatformException catch (e) {
    print(e.message);
  }

  return bResult != null && bResult;
}