extendedTransition method
Implementation
@override
Set<NonDeterministicState> extendedTransition(
NonDeterministicState state,
String input,
) {
if (input.isEmpty) return {state};
final possibleNextStates = state.executeTransition(input[0]);
if (possibleNextStates.isEmpty) return {};
return possibleNextStates
.map((nextState) => extendedTransition(nextState, input.substring(1)))
.reduce((a, b) => {...a, ...b});
}