getStorefrontItemById method

Id getStorefrontItemById(
  1. String id
)

Implementation

Id getStorefrontItemById(String id) => storefrontItems.singleWhere((element) => !isNullOrEmpty(element.id) && element.id! == id);