DownloadableRegion.internal constructor
- @internal
- required List<
LatLng> points, - required int minZoom,
- required int maxZoom,
- required TileLayerOptions options,
- required RegionType type,
- required BaseRegion originalRegion,
- required int parallelThreads,
- required bool preventRedownload,
- required bool seaTileRemoval,
- required int start,
- required int? end,
- required Crs crs,
- required dynamic errorHandler()?,
Avoid construction using this method. Use BaseRegion.toDownloadable to generate DownloadableRegions from other regions.
Implementation
@internal
DownloadableRegion.internal({
required this.points,
required this.minZoom,
required this.maxZoom,
required this.options,
required this.type,
required this.originalRegion,
required this.parallelThreads,
required this.preventRedownload,
required this.seaTileRemoval,
required this.start,
required this.end,
required this.crs,
required this.errorHandler,
}) {
if (minZoom > maxZoom) {
throw ArgumentError(
'`minZoom` should be less than or equal to `maxZoom`',
);
}
if (parallelThreads < 1) {
throw ArgumentError(
'`parallelThreads` should be more than or equal to 1. Set to 1 to disable multithreading',
);
}
}