isLocked property

bool get isLocked

Returns true if the object is locked.

Implementation

bool get isLocked => _writeCount != 0;