pushState method

bool pushState([
  1. StateX<StatefulWidget>? state
])

Add the optional State object to the Set

Implementation

bool pushState([StateX? state]) {
  if (state == null) {
    return false;
  }
  _init = true;
  _state = state;
  return _stateSet.add(state);
}