getpincodefromlocal method

Future getpincodefromlocal()

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 = '';
  }
}