change method

  1. @protected
void change(
  1. T? newState, {
  2. RxStatus? status,
})

Implementation

@protected
void change(T? newState, {RxStatus? status}) {
  var _canUpdate = false;
  if (status != null) {
    _status = status;
    _canUpdate = true;
  }
  if (newState != _value) {
    _value = newState;
    _canUpdate = true;
  }
  if (_canUpdate) {
    refresh();
  }
}