getThermalInfo method

  1. @override
Future<ThermalInfo> getThermalInfo()
override

Implementation

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