return a list of object with hive stream
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
**Question**
I have an interface for my repository which returns ```Stream>>```. I am don't know how to do that using ```watch()``` method.
**Code sample**
```dart
final Box notebookBox = Hive.box(Documents.notebook);
Stream>> getNotebooks() async* {
notebookBox
.watch()
.map(
(boxEvent) => right>(boxEvent.value),
)
.onErrorReturnWith(
(error) => left(const NotebookFailure.unexpected()),
);
}
```
The error is **The argument type 'dynamic' can't be assigned to the parameter type 'List'.**
**Version**
- Platform: iOS, Android
- Flutter version: 1.22.0
- Hive version: version: "1.4.4+1"
- Hive_Flutter: version: "0.3.1"
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.