unit method

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

Implementation

void unit(OnState<TS> onState, ContextConsumer? builder) {
  if (builder != null) {
    _add(
      onState,
      (c, _) => builder(c),
    );
  }
}