getpincodefromlocal method
Implementation
Future getpincodefromlocal() async {
try {
SharedPreferences _prefs = await SharedPreferences.getInstance();
city.value = await _prefs.getString('city')!;
enteredPincode.value = await _prefs.getString('pincodefromuser')!;
} catch (e) {
city.value = '';
enteredPincode.value = '';
}
}