hasLock property

bool hasLock

Implementation

bool get hasLock => _lock != null;