saveCurrentOrgInHive method
void saveCurrentOrgInHive (OrgInfo saveOrgAsCurrent)
Implementation
void saveCurrentOrgInHive(OrgInfo saveOrgAsCurrent) {
_currentOrg = saveOrgAsCurrent;
_currentOrgInfoController.add(_currentOrg!);
final box = Hive.box<OrgInfo>('currentOrg');
if (box.get('org') == null) {
box.put('org', _currentOrg!);
} else {
box.put('org', _currentOrg!);
}
}