MapStyle class

Implemented types

Constructors

MapStyle({StyleElement? element, StyleFeature? feature, 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.
const

Properties

element StyleElement?
final
feature StyleFeature?
final
hashCode int
The hash code for this object.
no setterinherited
rules List<StyleRule>
Style rules are applied in the order that you specify. Do not combine multiple operations into a single style operation. Instead, define each operation as a separate entry in the style array.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toUrlString() String
override

Operators

operator ==(Object other) bool
The equality operator.
inherited