isLocked method

bool isLocked(
  1. String name
)

Checks the value from your lock map. Provide the name of the lock.

Implementation

bool isLocked(String name) {
  if (_lockMap.containsKey(name) == false) {
    _lockMap[name] = false;
  }
  return _lockMap[name]!;
}