unlock method

bool unlock(
  1. WireDataLockToken token
)

After calling this method with proper token WireDataLockToken changes to the WireData value will be allowed from anywhere of the system

Implementation

bool unlock(WireDataLockToken token) {
  final opened = (isLocked && _lockToken!.equal(token)) || !isLocked;
  if (opened) _lockToken = null;
  return opened; // throw ERROR__DATA_CANNOT_OPEN
}