feat :
1 - search location and conditions 2 - parse list in isolate
This commit is contained in:
@@ -57,8 +57,9 @@ class InspectionMapLogic extends GetxController {
|
||||
allPoultryLocation.value = Resource<List<PoultryLocationModel>>.loading();
|
||||
await safeCall(
|
||||
call: () => inspectionRepository.getNearbyLocation(),
|
||||
onSuccess: (result) {
|
||||
onSuccess: (result) async{
|
||||
if (result != null) {
|
||||
|
||||
allPoultryLocation.value = Resource<List<PoultryLocationModel>>.success(result);
|
||||
mapLogic.allLocations.value = Resource<List<PoultryLocationModel>>.success(result);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user