BaseEventSubscriptionBuilder<TInput, TOutput> class
abstract
Base for implementing custom EventSubscriptionBuilder.
TInput
is the input received by the handler
TOutput
is the output being send to the next handler
- Inheritance
-
- Object
- EventSubscriptionBuilder<
TOutput> - BaseEventSubscriptionBuilder
- Available extensions
Constructors
-
BaseEventSubscriptionBuilder({required EventSubscriptionBuilder<
TInput> parent}) - Creates a new EventSubscriptionBuilder.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
parent
→ EventSubscriptionBuilder<
TInput> -
The parent EventSubscriptionBuilder that this builder is wrapping.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asyncExpand(
Stream< TOutput> convert(TOutput element)) → EventSubscriptionBuilder<TOutput> -
Transforms each element of this handler into a sequence of elements.
inherited
-
asyncMap<
S> (Future< S> mapper(TOutput event)) → EventSubscriptionBuilder<S> -
Transforms each event.
inherited
-
cast<
S> () → EventSubscriptionBuilder< S> -
Transforms each event.
inherited
-
createHandler(
EventHandler< TOutput> handler) → EventHandler<TInput> -
Creates the EventHandler for this builder based on the parent
handler
. -
distinct(
[bool equals(TOutput previous, TOutput next)?]) → EventSubscriptionBuilder< TOutput> -
Skips data events if they are equal to the previous data event.
inherited
-
expand(
Iterable< TOutput> convert(TOutput element)) → EventSubscriptionBuilder<TOutput> -
Transforms each element of this handler into a sequence of elements.
inherited
-
map<
S> (S mapper(TOutput event)) → EventSubscriptionBuilder< S> -
Transforms each event.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe(
EventHandler< TOutput> handler) → EventSubscription -
Subscribes to the given
handler
.override -
toString(
) → String -
A string representation of this object.
inherited
-
where(
bool test(TOutput event)) → EventSubscriptionBuilder< TOutput> -
Filters the events
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited