ViewParameters constructor

const ViewParameters({
  1. required String key,
  2. required Coordinates center,
  3. int? zoom,
  4. String? language,
  5. MapType? mapType,
  6. String? region,
})

Constructs a new ViewParameters instance.

The key parameter is required and specifies the API key for the Google Maps embed. The center parameter is required and specifies the coordinates for the center of the map. The zoom, language, mapType, and region parameters are optional and provide additional customization options.

Implementation

const ViewParameters({
  required super.key,
  required Coordinates center,
  super.zoom,
  super.language,
  super.mapType,
  super.region,
}) : super(mode: MapMode.view, center: center);