openHotspotSettings static method

Future<void> openHotspotSettings({
  1. bool asAnotherTask = false,
  2. Function? callback,
})

Opening hotspot and tethering settings

Implementation

static Future<void> openHotspotSettings(
    {bool asAnotherTask = false, Function? callback}) async {
  await _channel.invokeMethod('hotspot', {'asAnotherTask': asAnotherTask});
  if (callback != null) handleCallback(callback);
}