services property

Returns a list of Bluetooth GATT services offered by the remote device This function requires that discoverServices has been completed for this device

Implementation

Stream<List<BluetoothService>> get services async* {
  yield await FlutterBlue.instance._channel
      .invokeMethod('services', id.toString())
      .then((buffer) =>
          new protos.DiscoverServicesResult.fromBuffer(buffer).services)
      .then((i) => i.map((s) => new BluetoothService.fromProto(s)).toList());
  yield* _services.stream;
}