Commit 2f5bab1d authored by Tim Smart's avatar Tim Smart

Add listen method

parent 32eb25bf
## 2.0.1
- Add listen method.
## 2.0.0
- Move output stream to `.stream` to reduce API surface.
......
......@@ -42,4 +42,17 @@ abstract class BlocStream<State> {
_closers.forEach((fn) => fn());
return subject.close();
}
StreamSubscription<State> listen(
void Function(State) onData, {
Function onError,
void Function() onDone,
bool cancelOnError,
}) =>
subject.listen(
onData,
onError: onError,
onDone: onDone,
cancelOnError: cancelOnError,
);
}
name: bloc_stream
description: A simple package that helps you to implement the BLoC pattern in your applications.
version: 2.0.0
version: 2.0.1
homepage: https://gitlab.com/arisechurch/bloc_stream
environment:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment