error method
Implementation
void error(OnState<TS> onState, ValueConsumer<Object>? builder) {
if (builder != null) {
_add(
onState,
(c, s) => builder(c, s.extractError()),
);
}
}
void error(OnState<TS> onState, ValueConsumer<Object>? builder) {
if (builder != null) {
_add(
onState,
(c, s) => builder(c, s.extractError()),
);
}
}