ImageSource class Null safety

An image data source. @see The online documentation

Inheritance

Constructors

ImageSource({required dynamic id, String? url, List<List<double?>?>? coordinates, double? prefetchZoomDelta})

Properties

coordinates Future<List<List<double?>?>?>
Corners of image specified in longitude, latitude pairs.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
id String
The ID of the Source.
read / writeinherited
prefetchZoomDelta Future<double?>
When loading a map, if PrefetchZoomDelta is set to any number greater than 0, the map will first request a tile at zoom level lower than zoom - delta, but so that the zoom level is multiple of delta, in an attempt to display a full map at lower resolution as quick as possible. It will get clamped at the tile source minimum zoom. The default delta is 4.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
url Future<String?>
URL that points to an image.
read-only

Methods

bind(StyleManager style) → void
inherited
getType() String
Get the type of the current source as a String.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateImage(MbxImage image) Future<void>?
Updates the image of an image style source.

Operators

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