additionalOptions property
Static information that should replace placeholders in the urlTemplate. Applying API keys is a good example on how to use this parameter.
Example:
TileLayerOptions(
urlTemplate: "https://api.tiles.mapbox.com/v4/"
"{id}/{z}/{x}/{y}{r}.png?access_token={accessToken}",
additionalOptions: {
'accessToken': '<PUT_ACCESS_TOKEN_HERE>',
'id': 'mapbox.streets',
},
),
Implementation
final Map<String, String> additionalOptions;