updateTempUnit method
Changes the user’s temperature unit preference.
tempUnit is passed on to the native
updateTempUnit function of the native is invoked
Implementation
@override
Future<void> updateTempUnit({required int tempUnit}) async {
await methodChannel.invokeMethod<void>('updateTempUnit', <String, dynamic>{
'tempUnit': tempUnit,
});
}