getCurrentDeviceInfo method

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

Implementation

@override
Future<NearbyDeviceInfo?> getCurrentDeviceInfo() async {
  return NearbyDeviceMapper.instance
      .mapToDevice(
        await methodChannel.invokeMethod('getCurrentDevice'),
      )
      ?.info;
}