isWriteLocked property

bool get isWriteLocked

Indicates if a write lock has been acquired and not released.

Implementation

bool get isWriteLocked => (_state == -1);