TileUpdateEvent class

Describes whether loading and/or pruning should occur and allows overriding the load center/zoom.

Annotations

Constructors

TileUpdateEvent({required MapEvent mapEvent, bool load = true, bool prune = true, LatLng? loadCenterOverride, double? loadZoomOverride})
Create a new TileUpdateEvent.
const

Properties

camera → MapCamera
Shortcut for the MapCamera of the event.
no setter
center → LatLng
Getter for the map center, respects a potential overridden map center when loading tiles.
no setter
hashCode → int
The hash code for this object.
no setterinherited
load → bool
Set to true if the tiles should get loaded.
final
loadCenterOverride → LatLng?
An optional overridden center value while loading.
final
loadZoomOverride → double?
An optional overridden zoom value while loading.
final
mapEvent → MapEvent
The MapEvent that caused the TileUpdateEvent.
final
prune → bool
Set to true if the tiles should get pruned.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
zoom → double
Getter for the map zoom, respects a potential overridden zoom when loading tiles.
no setter

Methods

loadAndPrune({LatLng? loadCenterOverride, double? loadZoomOverride}) → TileUpdateEvent
Returns a copy of this TileUpdateEvent with loading and pruning enabled. The loading center/zoom can be overriden with loadCenterOverride and loadZoomOverride otherwise they will default to the map's current center/zoom.
loadOnly({LatLng? loadCenterOverride, double? loadZoomOverride}) → TileUpdateEvent
Returns a copy of this TileUpdateEvent with only loading enabled. The loading center/zoom can be overriden with loadCenterOverride and loadZoomOverride otherwise they will default to the map's current center/zoom.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pruneOnly() → TileUpdateEvent
Returns a copy of this TileUpdateEvent with only pruning enabled and the loadCenterOverride/loadZoomOverride removed.
toString() → String
A string representation of this object.
override
wasTriggeredByTap() → bool
Checks if the MapEvent has been caused by a tap.

Operators

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