MapOptions constructor

MapOptions({
  1. required int mapID,
  2. required String token,
  3. required Environment environment,
  4. LocationSource locationSource = LocationSource.GPS,
  5. bool offlineMode = false,
  6. 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/";
  }
}