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