flutter shared preferences vs paramater parsing data code example
Example: saving location tracker data in sharedpreferences to find last location in flutter
void save() {
String address = _currentAddress;
saveAddress(address);
}
void _updateName(String address) {
setState(() {
this.locationCache = address;
});
}