OfflineStorageSizeCallback typedef
A method which is called on the main thread when MapDownloader.getOfflineMapsStorageSizeInBytesAsync has been completed.
The first argument indicates an error in case of a failure. The second argument contains the results.
Both arguments cannot be null at the same time - or not null at the same time.
-
errorRepresents an error in case of a failure. It isnullfor an operation that succeeds. -
sizeThe size of offline map. It isnullin case of an error.
Implementation
typedef OfflineStorageSizeCallback = void Function(MapLoaderError? error, int? size);