setActiveGroupId method
设置当前组id*
Implementation
void setActiveGroupId(int activeGroupId) {
Log.i(tag, "setActiveGroupId:$activeGroupId");
_activeGroupId = activeGroupId;
if(activeGroupId>0 &&getGroup(activeGroupId)!=null){
_activeGroupName=getGroup(activeGroupId)["name"];
}else{
_activeGroupName=S.current.NotInGroup;
}
Log.i(tag, "setActiveGroupId:activeGroupName:$_activeGroupName");
notifyListeners();
}