peripheralsStream property

  1. @override
Stream<List<Peripheral>> get peripheralsStream
override

Stream of lists of available Peripheral devices.

Implementation

@override
Stream<List<Peripheral>> get peripheralsStream {
  return peripheralChannel.receiveBroadcastStream().map((event) {
    final maps = _convertToListMap(event);
    return maps.map((map) => Peripheral.fromJson(map)).toList();
  });
}