MapStyle constructor

const MapStyle({
  1. StyleElement? element,
  2. StyleFeature? feature,
  3. required List<StyleRule> rules,
})

Customize the presentation of the standard Google map by applying your own styles when using the Maps Static API. You can change the visual display of features such as roads, parks, built-up areas, and other points of interest. Change their color or style to emphasize particular content, complement surrounding content on the page, or even hide features completely.

Implementation

const MapStyle({
  this.element,
  this.feature,
  required this.rules,
});