isLocked property

bool get isLocked

Indicates if a lock (read or write) has currently been acquired.

Implementation

bool get isLocked => (_state != 0);