GraphBloc<Event, State> constructor

GraphBloc<Event, State>({
  1. required State initialState,
})

Implementation

GraphBloc({required State initialState}) : super(initialState) {
  // configure a single on<Event> handler that passes the event to the _handleGraphEvent function
  // that's in charge of using [graph] to determine the next state.
  on<Event>((event, emit) => _handleGraphEvent(event, emit));
  _graph = graph;
}