hasRangeItem static method

bool hasRangeItem(
  1. List<SelectionEntity> list
)

判断列表中是否有range类型

Implementation

static bool hasRangeItem(List<SelectionEntity> list) {
  for (SelectionEntity entity in list) {
    if (SelectionFilterType.range == entity.filterType ||
        SelectionFilterType.dateRange == entity.filterType ||
        SelectionFilterType.dateRangeCalendar == entity.filterType ||
        SelectionWindowType.range == entity.filterShowType) {
      return true;
    }
  }
  return false;
}