getPeripheralsInfo method
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);
}