Skip to content

Commit b7abf2d

Browse files
committed
prep. 2.4.0
1 parent 9920008 commit b7abf2d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2.4.0 - Sep 13, 2021
2+
3+
- Remove `distinct_value_connectable_stream` dependency.
4+
- Depend on `rxdart_ext: ^0.1.2`.
5+
- Update meta to `1.7.0`.
6+
- Migrated from `pedantic` to `lints`.
7+
18
## 2.3.0 - May 10, 2021
29

310
- Update `distinct_value_connectable_stream` to `1.3.0`.

lib/src/selectors.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'dart:async';
22

3+
import 'package:meta/meta.dart';
34
import 'package:rxdart_ext/state_stream.dart';
45

56
import 'store.dart';
@@ -30,6 +31,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
3031
/// Observe a value of type [Result] exposed from a state stream, and listen only partially to changes.
3132
///
3233
/// The returned Stream is a single-subscription Stream.
34+
@useResult
3335
StateStream<Result> select<Result>(
3436
Selector<State, Result> selector, {
3537
Equals<Result>? equals,
@@ -39,6 +41,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
3941
/// Select two sub states and combine them by [projector].
4042
///
4143
/// The returned Stream is a single-subscription Stream.
44+
@useResult
4245
StateStream<Result> select2<SubState1, SubState2, Result>(
4346
Selector<State, SubState1> selector1,
4447
Selector<State, SubState2> selector2,
@@ -60,6 +63,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
6063
/// Select three sub states and combine them by [projector].
6164
///
6265
/// The returned Stream is a single-subscription Stream.
66+
@useResult
6367
StateStream<Result> select3<SubState1, SubState2, SubState3, Result>(
6468
Selector<State, SubState1> selector1,
6569
Selector<State, SubState2> selector2,
@@ -87,6 +91,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
8791
/// Select four sub states and combine them by [projector].
8892
///
8993
/// The returned Stream is a single-subscription Stream.
94+
@useResult
9095
StateStream<Result>
9196
select4<SubState1, SubState2, SubState3, SubState4, Result>(
9297
Selector<State, SubState1> selector1,
@@ -123,6 +128,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
123128
/// Select five sub states and combine them by [projector].
124129
///
125130
/// The returned Stream is a single-subscription Stream.
131+
@useResult
126132
StateStream<Result>
127133
select5<SubState1, SubState2, SubState3, SubState4, SubState5, Result>(
128134
Selector<State, SubState1> selector1,
@@ -173,6 +179,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
173179
/// Select five sub states and combine them by [projector].
174180
///
175181
/// The returned Stream is a single-subscription Stream.
182+
@useResult
176183
StateStream<Result> select6<SubState1, SubState2, SubState3, SubState4,
177184
SubState5, SubState6, Result>(
178185
Selector<State, SubState1> selector1,
@@ -229,6 +236,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
229236
/// Select seven sub states and combine them by [projector].
230237
///
231238
/// The returned Stream is a single-subscription Stream.
239+
@useResult
232240
StateStream<Result> select7<SubState1, SubState2, SubState3, SubState4,
233241
SubState5, SubState6, SubState7, Result>(
234242
Selector<State, SubState1> selector1,
@@ -291,6 +299,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
291299
/// Select eight sub states and combine them by [projector].
292300
///
293301
/// The returned Stream is a single-subscription Stream.
302+
@useResult
294303
StateStream<Result> select8<SubState1, SubState2, SubState3, SubState4,
295304
SubState5, SubState6, SubState7, SubState8, Result>(
296305
Selector<State, SubState1> selector1,
@@ -359,6 +368,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
359368
/// Select nine sub states and combine them by [projector].
360369
///
361370
/// The returned Stream is a single-subscription Stream.
371+
@useResult
362372
StateStream<Result> select9<SubState1, SubState2, SubState3, SubState4,
363373
SubState5, SubState6, SubState7, SubState8, SubState9, Result>(
364374
Selector<State, SubState1> selector1,

0 commit comments

Comments
 (0)