makeUnassignable method

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

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

@override
void makeUnassignable({String? reason}) {
  for (final element in elements) {
    element.makeUnassignable(reason: reason);
  }
}