setState static method

dynamic setState(
  1. dynamic state,
  2. dynamic setState()
)

Set the state of the page

Implementation

static setState(dynamic state, Function() setState) {
  _updateState(_findStateName(state), "set-state", {"setState": setState});
}