CatalogsUpdateInfoCallback typedef

CatalogsUpdateInfoCallback = void Function(MapLoaderError? error, List<CatalogUpdateInfo>? catalogs)

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.

  • error Represents an error in case of a failure. It is null for an operation that succeeds.

  • catalogs Represents a list of all catalogs that can be updated. It is null in case of an error.

Implementation

typedef CatalogsUpdateInfoCallback = void Function(MapLoaderError? error, List<CatalogUpdateInfo>? catalogs);