clearCustomIdentity method

void clearCustomIdentity()

Clear custom identity (revert to internal UUID) Throws StateError if identity is locked

Implementation

void clearCustomIdentity() {
  if (_identityLocked) {
    throw StateError(
      'Cannot clear identity key: Already locked (used in UI).',
    );
  }
  _customIdentityKey = null;
}