pipeState method

  1. @override
State<Component> pipeState(
  1. State<Component> state
)

Pipes the state after running createState in case of needing to handle the state from outside.

Implementation

@override
State pipeState(State state) {
  if (_context != null) {
    state.setContext(_context!);
  }
  return state;
}