build method

Graph<STATE, EVENT, SIDE_EFFECT> build()

Implementation

Graph<STATE, EVENT, SIDE_EFFECT> build() {
  var initialState = _initialState;
  if (initialState == null) {
    throw StateError("Initial state not defined");
  } else {
    return Graph(initialState, _stateDefinitions, _onTransitionListeners);
  }
}