useCurrentLocation method

dynamic useCurrentLocation({
  1. required String? delivMethod,
  2. required int? currentBranchId,
  3. required List<StoreListRequest> products,
})

Implementation

useCurrentLocation({
  required String? delivMethod,
  required int? currentBranchId,
  required List<StoreListRequest> products,
}) async {
  isLoading = true;
  update();
  location = await presentationHelper.location.getLocation();

  getStore(
    delivMethod: delivMethod,
    currentBranchId: currentBranchId,
    initial: false,
    products: products,
  );
}