style property

String? style
final

The style for the map.

Set to null to clear any previous custom styling.

If problems were detected with the mapStyle, including un-parsable styling JSON, unrecognized feature type, unrecognized element type, or invalid styler keys, the style is left unchanged, and the error can be retrieved with GoogleMapController.getStyleError.

The style string can be generated using the map style tool.

Implementation

final String? style;