DeletedRegionsCallback typedef

DeletedRegionsCallback = void Function(MapLoaderError? maploaderError, List<RegionId>? regions)

A method which is called on the main thread when MapDownloader.deleteRegions has been completed.

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

  • regions Represents a list of successfully removed map regions. It is [null] in case of an error.

Implementation

typedef DeletedRegionsCallback = void Function(MapLoaderError? maploaderError, List<RegionId>? regions);