checkIfCowGroupChanged method Null safety
- CowGroupState cowGroupState
사용자가 다른 그룹을 선택하였는지를 확인하고 맞다면 새로고침을 수행합니다.
Implementation
Future<void> checkIfCowGroupChanged(CowGroupState cowGroupState) async {
if (_currentCowGroup != cowGroupState.currentCowGroup) {
_currentCowGroup = cowGroupState.currentCowGroup;
refreshController.refreshToIdle();
requestRefresh();
}
}