unit method

void unit(
  1. OnState<TS> onState,
  2. TransitionBuilder builder
)

Implementation

void unit(OnState<TS> onState, TransitionBuilder builder) {
  _add(
    onState,
    (c, _, child) => builder(c, child),
  );
}