run static method

Stream<ESPTouchResult>? run({
  1. required String ssid,
  2. required String bssid,
  3. String password = "",
  4. String deviceCount = "1",
  5. bool isBroad = true,
})

Implementation

static Stream<ESPTouchResult>? run(
    {required String ssid,
    required String bssid,
    String password = "",
    String deviceCount = "1",
    bool isBroad = true}) {
  return _eventChannel.receiveBroadcastStream({
    'ssid': ssid,
    'bssid': bssid,
    'password': password,
    "deviceCount": deviceCount,
    'isBroad': (isBroad) ? "YES" : "NO"
  }).map((event) => ESPTouchResult.fromMap(event));
}