productSetDescTitle function

dynamic productSetDescTitle(
  1. String val,
  2. String locale
)

Implementation

productSetDescTitle(String val, String locale){
  for (var item in currentProduct.descTitle)
    if (item.code == locale) {
      item.text = val;
      return;
    }
  currentProduct.descTitle.add(StringData(code: locale, text: val));
}