setProfileIndex method
Implementation
void setProfileIndex(int index) {
if (_profileRegistry.hasProfiles) {
_currentProfile = _profileRegistry.profiles[index];
_profileRegistry.currentProfileIndex = index;
debugPrint(
'${CmdOutputs.libraryHeader} Current profile set to: ${_currentProfile.name}');
}
}