setNotifyDecider method

void setNotifyDecider(
  1. NotifyDecider? decider
)

Implementation

void setNotifyDecider(NotifyDecider? decider) {
  assert(_notifyDecider == null || decider == null,
      'Cannot set multiple notify decider.');
  if (_notifyDecider != null) {
    _notifyDecider!.removeListener(_onDeciderChangeMind);
  }
  _notifyDecider = decider;
  if (decider != null) {
    decider.addListener(_onDeciderChangeMind);
  }
}