CatalogsUpdateInfoCallback typedef
This method will be called on the main thread when MapUpdater.retrieveCatalogsUpdateInfo has been completed.
The first parameter indicates an error in case of a failure. The second parameter contains the results.
Both parameters cannot be null at the same time - or not null at the same time.
An empty CatalogUpdateInfo list represent no map updates.
-
errorRepresents an error in case of a failure. It isnullfor an operation that succeeds. -
catalogsRepresents a list of all catalogs that can be updated. It isnullin case of an error.
Implementation
typedef CatalogsUpdateInfoCallback = void Function(MapLoaderError? error, List<CatalogUpdateInfo>? catalogs);