getPeers method

  1. @override
Future<List<NearbyDevice>> getPeers()
override

Implementation

@override
Future<List<NearbyDevice>> getPeers() async {
  final result = await methodChannel.invokeMethod('getPeers');
  final updatedResult = ResultHandler.instance.handle(result);
  return NearbyDeviceMapper.instance.mapToDeviceList(updatedResult);
}