CarpenterWorkflowControllerBase<TState, TContext> constructor
CarpenterWorkflowControllerBase<TState, TContext> ({
- required TState initialState,
- required TContext context,
- required List<
CarpenterWorkflowTransition< transitions(TState, TContext> >- TState state,
- TContext context
- required TState reduce(
- TState state,
- CarpenterWorkflowTransitionId transition
- Future<
void> onCancel()?,
Implementation
CarpenterWorkflowControllerBase({
required TState initialState,
required this.context,
required List<CarpenterWorkflowTransition<TState, TContext>> Function(
TState state,
TContext context,
)
transitions,
required TState Function(
TState state,
CarpenterWorkflowTransitionId transition,
)
reduce,
Future<void> Function()? onCancel,
}) : _state = initialState,
_transitions = transitions,
_reduce = reduce,
_onCancel = onCancel;