getUnreadCountByProvider function

int getUnreadCountByProvider(
  1. String providerId
)

Implementation

int getUnreadCountByProvider(String providerId){
  int _count = 0;
  for (var item in ordersDataCache)
    if (item.providerId == providerId)
      if (!item.viewByProvider)
        _count++;
  return _count;
}