DownloadableRegionsCallback typedef
A method which is called on the main thread when MapDownloader.getDownloadableRegionsWithLanguageCode 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.
-
maploaderErrorRepresents an error in case of a failure. It isnullfor an operation that succeeds. -
regionsRepresents a list of downloadable regions. It isnullin case of an error. Each region can contain child regions that can contain child regions and so on. Usually, the top-level regions represent continents that contain countries as children.
Implementation
typedef DownloadableRegionsCallback = void Function(MapLoaderError? maploaderError, List<Region>? regions);