subscribeFunction method
Subscribes to the given handler
.
This finalizes the builder and applies all the steps before subscribing.
Implementation
EventSubscription subscribeFunction(
FutureOr<void> Function(T event) handler,
) {
return subscribe(EventHandler.function(handler));
}