stated_builder library
Classes
-
ErrorStateBase<
SELF extends HasError> - Base class for state implements HasValue contract
- FailedState
- State indicates the action is failed with error
-
FailedValueState<
T> - State indicates the action is failed with error, and a value
- IdleState
- State indicates the action haven't started yet
-
IdleValueState<
T> - State indicates the action haven't started yet, with a value
-
OnState<
TS extends Stated> -
Describe a pattern to test against Stated when whether it is a
TS
with extra criteria OnState.matches returnstrue
if pattern matches. -
StatedBuilder<
TS extends Stated> -
StatedBuilderPatternBuilder<
TS extends Stated> -
StatedConsumer<
TS extends Stated> -
StatedConsumerPatternBuilder<
TS extends Stated> - SucceededState
- State indicates the action is completed successfully
-
SucceededValueState<
T> - State indicates the action is completed successfully with value
-
UnitStateBase<
SELF> - Base class for state without any field
-
ValueErrorStateBase<
T, SELF extends HasValueAndError< T> > -
ValueStateBase<
T, SELF extends HasValue< T> > - Base class for state implements HasValue contract
- WorkingIndicatorBuilder
- Build
- WorkingState
- State indicates the action is in progress
-
WorkingValueState<
T> - State indicates the action is in progress, with a value
Mixins
Extensions
Typedefs
-
CallBuilder<
TB> = void Function(TB buildAction) - ContextConsumer = void Function(BuildContext context)
- StatedPredict = bool Function(Stated stated)
-
Determine whether
stated
matches or not -
StateTransformer<
TR> = TR Function() -
ValueConsumer<
T> = void Function(BuildContext context, T value) -
ValueTransformer<
T, TR> = TR Function(T value) - Transformer for state with value