activeProfile property
Profile
get
activeProfile
Gets the active profile.
Throws an exception if no active profile has been selected. Returns the active profile.
Implementation
Profile get activeProfile {
if (_activeProfile == null) {
throw Exception('No active profile selected');
}
return _activeProfile!;
}
set
activeProfile
(Profile profile)
Sets the active profile.
profile
- Profile to set as active
Implementation
set activeProfile(Profile profile) {
_activeProfile = profile;
}