findLock method
Find an existing lock for a component
Implementation
SignalLock? findLock(String component) {
try {
return _locks.values.firstWhere((lock) => lock.component == component);
} catch (e) {
return null;
}
}
Find an existing lock for a component
SignalLock? findLock(String component) {
try {
return _locks.values.firstWhere((lock) => lock.component == component);
} catch (e) {
return null;
}
}