updateTempUnit method

  1. @override
Future<void> updateTempUnit({
  1. required int tempUnit,
})
override

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,
  });
}