isWriteLocked property

bool get isWriteLocked

Indicates if a write lock has currently been acquired.

Implementation

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