setLock method

void setLock(
  1. bool isLock
)

Sets whether the controller is locked.

Implementation

void setLock(bool isLock) {
  if (_isDisposed) {
    return;
  }

  value = value.copyWith(isLock: isLock);
}