MapViewState class

Inheritance

Constructors

MapViewState()

Properties

circles Map<CircleId, Circle>
read / write
cities List<ItalianCities>
read / write
context BuildContext
The location in the tree where this widget builds.
read-onlyinherited
filteredCities List<ItalianCities>
read / write
geo GeoFlutterFire
read / write
hashCode int
The hash code for this object.
read-onlyinherited
latitudeController TextEditingController
read / write
longitudeController TextEditingController
read / write
mapController GoogleMapController
read / write
mounted bool
Whether this State object is currently in a tree.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectedCircles Set<CircleId>
final
widget MapView
The current configuration.
read-onlyinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
addCircle(double lat, double lng, TypicalFood food) → void
The addCircle function adds a circle to the map. @param lat The latitude of the circle. @param lng The longitude of the circle. @param food The TypicalFood object. {@category Functions}
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant MapView oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
override
initState() → void
Called when this object is inserted into the tree.
override
moveCameraTo(int index) → void
The moveCameraTo function moves the camera to the location of the city. @param index The index of the city in the filteredCities list. {@category Functions}
moveToCurrentLocation() → void
The moveToCurrentLocation function moves the camera to the current location of the user. It uses the determinePosition function from the location.dart file. {@category Functions}
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMapCreated(GoogleMapController controller) → void
The onMapCreated function is called when the map is created. It sets the mapController and moves the camera to the current location. It also updates the circles on the map. @param controller The GoogleMapController object. {@category Functions}
onSearch(String query) → void
The onSearch function is called when the user types something in the search bar. It filters the cities based on the query. @param query The query string. {@category Functions}
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
updateCircles() → void
The updateCircles function updates the circles on the map. It uses the typicalFoods map from the typical_foods.dart file. {@category Functions}

Operators

operator ==(Object other) bool
The equality operator.
inherited