SearchParameters class

A class representing search parameters for the Google Maps Embed Flutter package.

This class extends the Parameters class and adds a q parameter for search queries. It also overrides the toMap method to include the q parameter in the resulting map. Reference: https://developers.google.com/maps/documentation/embed/embedding-map#search_mode

Inheritance

Constructors

SearchParameters({required String key, required Place q, Coordinates? center, int? zoom, MapType? mapType, String? language, String? region})
Creates a new instance of SearchParameters.
const

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