ResourceOptions class

Options to configure a resource

Constructors

ResourceOptions({required String accessToken, String? baseURL, String? dataPath, String? assetPath, TileStoreUsageMode? tileStoreUsageMode})

Properties

accessToken String
The access token that is used to access resources provided by Mapbox services.
getter/setter pair
assetPath String?
The path to the folder where application assets are located. Resources whose protocol is asset:// will be fetched from an asset folder or asset management system provided by respective platform. This option is ignored for Android platform. An iOS application may provide path to an application bundle's path.
getter/setter pair
baseURL String?
The base URL that would be used to make HTTP requests. By default it is https://api.mapbox.com.
getter/setter pair
dataPath String?
The path to the map data folder.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tileStoreUsageMode TileStoreUsageMode?
The tile store usage mode.
getter/setter pair

Methods

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

Operators

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

Static Methods

decode(Object result) ResourceOptions