title: How to know if my App is connected to a device using BLE in Flutter?.. when app is the beacon
body: <p>So my android app is behaving as a <code>beacon</code>, means, it will be <code>advertising</code> and other <code>BLE devices</code> will be connecting to it. Well, this is how our project is working so please don't raise questions on this as why am i using my app as a beacon and not as a scanner. Anyways, It behaves as a beacon and starts advertising and now I want to know that if a device connected to it. I cant find a way how to do this.</p>
  <p>Of course, I am using this flutter package. <code>beacon_broadcast 0.3.0</code></p>
  <p>This is my <strong>code</strong>.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  void startAdvertising() {
      BeaconBroadcast beaconBroadcast = BeaconBroadcast();
      beaconBroadcast
          .setUUID(advertisingUUID)
          .setMajorId(1)
          .setMinorId(100)
          .start();
    }</code></pre>
  </div>
  </div>
  </p>