StorageManager class abstract

Storage manager. This is a manager that controls temporary cache storages (for example map tiles).

Implemented types

Constructors

StorageManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addStorageErrorListener(StorageErrorListener errorListener) → void
Subscribes to storage events.
clear(StorageManagerClearListener callback) → void
Removes all data.
computeSize(StorageManagerSizeListener callback) → void
Computes storage size in bytes.
isValid() bool
Usable only in runWithBlockUi or listener handlers.
maxTileStorageSize(StorageManagerSizeListener callback) → void
Obtains the current storage size limit in bytes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeStorageErrorListener(StorageErrorListener errorListener) → void
Unsubscribes from storage events.
resetMaxTileStorageSize(StorageManagerSizeListener callback) → void
Resets the tile cache size limit.
setMaxTileStorageSize(StorageManagerSizeListener callback, {required int limit}) → void
Sets the maximum tile cache size to limit bytes. When the limit is reached, old tiles are removed.
toString() String
A string representation of this object.
inherited

Operators

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