Checks the value from your lock map. Provide the name of the lock.
name
bool isLocked(String name) { if (_lockMap.containsKey(name) == false) { _lockMap[name] = false; } return _lockMap[name]!; }