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