added getter for locations
This commit is contained in:
1 parent
a71cc454eb
commit
e8057a8cc6
1 file changed
+2
@@ -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