useCurrentLocation method
dynamic
useCurrentLocation({
- required String? delivMethod,
- required int? currentBranchId,
- 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,
);
}