state<I extends AutomataState> abstract method

void state<I extends AutomataState>({
  1. StateBuilder<AutomataState>? builder,
  2. StateNodeType? type,
})

Attach a StateNode of a given AutomataState.

Optionally it can define a StateNodeType, if no specific type is provided then one its inferred.

Implementation

void state<I extends AutomataState>({
  StateBuilder? builder,
  StateNodeType? type,
});