getCurrentDeviceInfo method

  1. @override
Future<NearbyDeviceInfo?> getCurrentDeviceInfo()
override

Implementation

@override
Future<NearbyDeviceInfo?> getCurrentDeviceInfo() async {
  final result = await methodChannel.invokeMethod('getCurrentDevice');
  final updatedResult = ResultHandler.instance.handle(result);
  return NearbyDeviceMapper.instance.mapToDevice(updatedResult)?.info;
}