Parameters class sealed
Represents the parameters for the Google Maps Embed API.
The Parameters class defines the various parameters that can be used when embedding a Google Map. It includes properties such as the map mode, API key, center coordinates, zoom level, map type, language, and region.
The Parameters class is a sealed class, meaning it has a fixed set of subclasses that inherit from it. This allows for better type safety and ensures that only valid combinations of parameters can be used.
The Parameters class provides methods to convert the parameters into a map representation and to generate the query parameters string for the API request. It also overrides the hashCode and operator == methods for proper comparison and equality checks. See: PlaceParameters Displays a map pin at a particular place or address, such as a landmark, business, geographic feature, or town. ViewParameters Displays a map with no markers or directions DirectionParameters Displays the path between two or more specified points on the map, as well as the distance and travel time. StreetViewParameters Shows interactive panoramic views from designated locations. SearchParameters Shows results for a search across the visible map region.
Properties
- center → Coordinates?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- key → String
-
final
- language → String?
-
final
- mapType → MapType?
-
final
- mode → MapMode
-
final
- region → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zoom → int?
-
final
Methods
-
getQueryParameters(
) → String - Generates the query parameters string for the API request.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, String> - Converts the parameters into a map representation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override