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})
const

Properties

camera MapCamera
no setter
center → LatLng
no setter
hashCode int
The hash code for this object.
no setterinherited
load bool
final
loadCenterOverride → LatLng?
final
loadZoomOverride double?
final
mapEvent MapEvent
final
prune bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoom double
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

Operators

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