isCurrentLocked property

bool get isCurrentLocked

Whether the currently active environment is locked.

When true, any call to switchTo will throw EnvSwitchLockedException.

Implementation

bool get isCurrentLocked => _lockedEnvironments.contains(current);