MapOptions constructor
- required int mapID,
- required String token,
- required Environment environment,
- LocationSource locationSource = LocationSource.GPS,
- bool offlineMode = false,
- String? offlineZipFileName = "",
Implementation
MapOptions({required this.mapID,
required this.token,
required this.environment,
this.locationSource = LocationSource.GPS,
this.offlineMode = false,
this.offlineZipFileName = "",
}){
if (environment == Environment.DEV) {
baseURL = "https://apidev.maaap.it/";
}else if(environment == Environment.PROD){
baseURL = "https://api.getwemap.com/";
}
}