PlaceParameters class
A class representing the parameters for a place in the Google Maps Embed API.
This class extends the Parameters class and adds a Place object as a required parameter. It also overrides the toMap method to include the "q" parameter in the returned map.
Reference: https://developers.google.com/maps/documentation/embed/embedding-map#place_mode
- Inheritance
-
- Object
- Parameters
- PlaceParameters
Constructors
- PlaceParameters({required String key, required Place q, Coordinates? center, int? zoom, MapType? mapType, String? language, String? region})
Properties
- center → Coordinates?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
finalinherited
- language → String?
-
finalinherited
- mapType → MapType?
-
finalinherited
- mode → MapMode
-
finalinherited
- q → Place
-
final
- region → String?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zoom → int?
-
finalinherited
Methods
-
getQueryParameters(
) → String -
Generates the query parameters string for the API request.
inherited
-
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.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited