value<T> method

void value<T>(
  1. OnState<TS> onState,
  2. ValueConsumer<T>? builder
)

Implementation

void value<T>(OnState<TS> onState, ValueConsumer<T>? builder) {
  if (builder != null) {
    _add(
      onState,
      (c, s) => builder(c, s.extractValue()),
    );
  }
}