TileImage class

Inheritance

Constructors

TileImage({required TickerProvider vsync, required TileCoordinates coordinates, required ImageProvider<Object> imageProvider, required void onLoadComplete(TileCoordinates coordinates), required void onLoadError(TileImage tile, Object error, StackTrace? stackTrace), required TileDisplay tileDisplay, required ImageProvider<Object>? errorImage, required Completer<void> cancelLoading})

Properties

animation AnimationController?
no setter
cancelLoading Completer<void>
Completer that is completed when this object is disposed
final
coordinates TileCoordinates
The z of the coordinate is the TileImage's zoom level whilst the x and y indicate the position of the tile at that zoom level.
final
coordinatesKey String
no setter
errorImage ImageProvider<Object>?
An optional image to show when a loading error occurs.
final
hashCode int
The hash code for this object.
no setteroverride
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
imageInfo ImageInfo?
getter/setter pair
imageProvider ImageProvider<Object>
getter/setter pair
loadError bool
True if an error occurred during loading.
getter/setter pair
loadFinishedAt DateTime?
When loading finished.
getter/setter pair
loadStarted DateTime?
When loading started.
getter/setter pair
onLoadComplete → void Function(TileCoordinates coordinates)
Callback fired when loading finishes with or withut an error. This callback is not triggered after this TileImage is disposed.
final
onLoadError → void Function(TileImage tile, Object error, StackTrace? stackTrace)
Callback fired when an error occurs whilst loading the tile image. onLoadComplete will be called immediately afterwards. This callback is not triggered after this TileImage is disposed.
final
opacity double
no setter
readyToDisplay bool
Whether the tile is displayable. This means that either:
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tileDisplay TileDisplay
Change the tile display options.
no getter
vsync TickerProvider
Used by animationController. Still required if animation is disabled in case the tile display is changed at a later point.
final

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose({bool evictImageFromCache = false}) → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
load() → void
Initiate loading of the image.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
override
zIndex(double maxZoom, int currentZoom) double

Operators

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