UserId property

UserId? get UserId
Gets the Id of the user the permission applies to.

Implementation

property.UserId? get UserId => this._userId;
set UserId (UserId? value)

Implementation

set UserId(property.UserId? value) {
  if (this._userId != null) {
    this._userId!.removeChangeEvent(this.PropertyChanged);
  }

  if (this.CanSetFieldValue(this._userId, value)) {
    this._userId = value;
    this.Changed();
  }

  if (this.UserId != null) {
    this.UserId!.addOnChangeEvent(this.PropertyChanged);
  }
}