loadContent method

Future<void> loadContent(
  1. BuildContext context
)

Implementation

Future<void> loadContent(BuildContext context) async {
  // print(Storage.getValue(Constants.merchantID));
  if (Storage.hasData(Constants.merchantID)) {
    String merchantId = Storage.getValue(Constants.merchantID).toString();
    await fetchProducts(context, merchantId);
    await fetchMerchantDetails(context, merchantId);
    price = priceList.first;
    availability = availabilityList.first;
  }
}