error method

void error(
  1. OnState<TS> onState,
  2. ValueWidgetBuilder<Object> builder
)

Implementation

void error(OnState<TS> onState, ValueWidgetBuilder<Object> builder) {
  _add(onState,
      (c, stated, child) => builder(c, stated.extractError(), child));
}