setProfileIndex method

void setProfileIndex(
  1. int index
)

Implementation

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