added getter for locations
This commit is contained in:
@@ -12,6 +12,8 @@ class LocationController extends ChangeNotifier {
|
||||
|
||||
final List<Location> _locations = [];
|
||||
|
||||
List<Location> get locations => _locations;
|
||||
|
||||
Future<void> addLocation(Location location) {
|
||||
_locations.add(location);
|
||||
notifyListeners();
|
||||
|
||||
Reference in New Issue
Block a user