isLocked property

bool get isLocked

Indicates if a lock (read or write) has been acquired and not released.

Implementation

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