accessToken property

String? accessToken
final

If you want to use Mapbox hosted styles and map tiles, you need to provide a Mapbox access token. Obtain a free access token on your Mapbox account page. The reccommended way is to use this parameter to set your access token, an alternative way to add your access tokens through external files is described in the plugin's wiki on Github.

Note: You should not use this parameter AND set the access token through external files at the same time, and you should use the same token throughout the entire app.

Implementation

final String? accessToken;