changeProfile method
Implementation
@override
Future<void> changeProfile(AppProfile selectedProfile) async {
AppConfig.logger.i("Changing profile to ${selectedProfile.id}");
try {
profile = selectedProfile;
Sint.toNamed(AppRouteConstants.splashScreen, arguments: [AppRouteConstants.home]);
profile = await userFirestore.updateCurrentProfile(user.id, selectedProfile.id);
} catch(e, st) {
NeomErrorLogger.recordError(e, st, module: 'neom_core', operation: 'changeProfile');
}
update();
}