ranging method

  1. @override
Stream<RangingResult> ranging(
  1. List<Region> regions
)
override

Implementation

@override
Stream<RangingResult> ranging(List<Region> regions) {
  final list = regions.map((region) => region.toJson).toList();
  final Stream<RangingResult> onRanging = _rangingChannel
      .receiveBroadcastStream(list)
      .map((dynamic event) => RangingResult.from(event));
  return onRanging;
}