addGeoLocation method Null safety

void addGeoLocation(
  1. Map<String, dynamic> location
)

Add new location to stored location

Implementation

void addGeoLocation(Map<String, dynamic> location) {
  var list = storedGeoLocation;
  list.add(location);
  shared.setStringList("stored_location", list.map((e) => jsonEncode(e)).toList());
}