getPeripheralsInfo method

  1. @override
Future<PeripheralsInfo> getPeripheralsInfo()
override

Implementation

@override
Future<PeripheralsInfo> getPeripheralsInfo() async {
  final map = await methodChannel.invokeMapMethod<dynamic, dynamic>('getPeripheralsInfo');
  if (map == null) {
    throw PlatformException(
      code: 'NULL_RESPONSE',
      message: 'getPeripheralsInfo returned null',
    );
  }
  return PeripheralsInfo.fromMap(map);
}