change method

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

Implementation

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