makeUnassignable method

void makeUnassignable({
  1. String? reason,
})

Makes it so that this signal cannot be assigned by any full (<=) or conditional (<) assignment.

Optionally, a reason may be provided for why it cannot be assigned. If a prior reason had been provided, this will overwrite it.

Implementation

void makeUnassignable({String? reason}) {
  _unassignable = true;
  _unassignableReason = reason;
}