onDiscoveredServices property

Stream<OnDiscoveredServicesEvent> get onDiscoveredServices

Implementation

Stream<OnDiscoveredServicesEvent> get onDiscoveredServices {
  return FlutterBluePlus._methodStream.stream
      .where((m) => m.method == "OnDiscoveredServices")
      .map((m) => m.arguments)
      .map((args) => BmDiscoverServicesResult.fromMap(args))
      .map((p) => OnDiscoveredServicesEvent(p));
}