connectByPrefix static method
The connectByPrefix method attempts to connect to the nearest wifi
network with the ssid prefix matching the ssidPrefix
parameter.
Implementation
static Future<bool?> connectByPrefix(String ssidPrefix,
{bool saveNetwork = false}) async {
final bool? connected = await _channel.invokeMethod<bool>(
'prefixConnect', {'ssid': ssidPrefix, 'saveNetwork': saveNetwork});
return connected;
}