ResourceOptions class Null safety

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.
read / write
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.
read / write
baseURL String?
The base URL that would be used to make HTTP requests. By default it is https://api.mapbox.com.
read / write
dataPath String?
The path to the map data folder.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
tileStoreUsageMode TileStoreUsageMode?
The tile store usage mode.
read / write

Methods

encode() Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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