lock property

IList<T?>? lock

Locks the list, returning an immutable list (IList).

Implementation

IList<T?>? get lock => (_iList != null) ? _iList : _list!.lock;