DebouncerBloc<T> class
Debounces repeated dispatches of an Action or list of Actions.
This Bloc attaches directly to the middleware stream and uses RxDart's
debounce
method to debounce Actions with runtime types contained in
actionTypes for the given duration.
- Implemented types
-
- Bloc<
T>
- Bloc<
Constructors
-
DebouncerBloc(List<
Type> actionTypes, {Duration duration = const Duration(seconds: 1)})
Properties
-
actionTypes
→ List<
Type> -
The runtime types of Actions to be debounced. All other actions will pass
through without interference.
final
- duration → Duration
-
The duration to use when debouncing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyAfterware(
Stream< WareContext< input) → Stream<T> >WareContext< T> > -
override
-
applyMiddleware(
Stream< WareContext< input) → Stream<T> >WareContext< T> > -
override
-
applyReducer(
Stream< Accumulator< input) → Stream<T> >Accumulator< T> > -
override
-
dispose(
) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited