updateState method

dynamic updateState(
  1. List<SpinnerEntity> data,
  2. List<AttachmentView> attachList
)

didUpdateWidget 时触发 更新当前state,用于异步显示筛选条件

Implementation

updateState(List<SpinnerEntity> data, List<AttachmentView> attachList) {
  value = _getState(data);
  updateAttach(attachList);
  notifyListeners();
}