TileUpdateEvent class
Describes whether loading and/or pruning should occur and allows overriding the load center/zoom.
Constructors
- TileUpdateEvent({required MapEvent mapEvent, bool load = true, bool prune = true, LatLng? loadCenterOverride, double? loadZoomOverride})
-
const
Properties
- 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
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
andloadZoomOverride
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
andloadZoomOverride
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